[erlang-questions] Erlang doesn't like ubuntu 6.10
Daniel Luna
luna@REDACTED
Mon Nov 13 15:23:01 CET 2006
On Mon, 13 Nov 2006, Romain Lenglet wrote:
> Daniel Luna wrote:
>> I've had similar problems when upgrading to 6.10. The problem
>> went away after downgrading gcc to 4.0.
>>
>> gcc --version
>> gcc-4.1 (GCC) 4.1.2 20060928 (prerelease) (Ubuntu
>> 4.1.1-13ubuntu5)
>>
>> # Don't worry it's just a symlink
>> sudo rm /usr/bin/gcc
>> sudo ln -s gcc-4.0 /usr/bin/gcc
>
> You should NEVER modify package-managed directories and files by
> hand!
[SNIP]
> 2.2) Or you can divert /usr/bin/gcc, and make it a new
> alternative:
>
> sudo dpkg-divert --divert /usr/bin/gcc-default \
> --rename --add /usr/bin/gcc
>
> sudo update-alternatives --install \
> /usr/bin/gcc gcc /usr/bin/gcc-4.0 100
>
> sudo update-alternatives --set gcc /usr/bin/gcc-4.0
>
> And then let ./configure detect and use /usr/bin/gcc.
Thanks!
This is exactly what I wanted.
Unfortunately I still have to do something by hand:
> sudo update-alternatives --config gcc
There is only 1 program which provides gcc
(/usr/bin/gcc-4.1). Nothing to configure.
So I still need to tell Ubuntu that gcc-4.0 is gcc... :-(
/Luna
--
Daniel Luna | Top reasons that I have a beard:
luna@REDACTED | a) Laziness.
http://www.update.uu.se/~luna/ | b) I can.
Don't look at my homepage (it stinks).| c) I can get away with it.
More information about the erlang-questions
mailing list