[erlang-questions] Erlang doesn't like ubuntu 6.10

Romain Lenglet rlenglet@REDACTED
Mon Nov 13 15:41:05 CET 2006


Daniel Luna wrote:
> On Mon, 13 Nov 2006, Romain Lenglet wrote:
> > 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.
[...]
> 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... :-(

No! The message:
> There is only 1 program which provides gcc
> (/usr/bin/gcc-4.1). Nothing to configure.
only means that for the gcc alternative, you have only one choice 
(/usr/bin/gcc-4.0), and therefore /usr/bin/gcc-4.0 is 
selected/linked by default. Since you have no choice, you 
have "Nothing to configure". You can check that the alternative 
link is actually correctly created:

ls -l /usr/bin/gcc
ls -l /etc/alternatives/gcc

If you had several choices for that alternative, then you must 
execute:

sudo update-alternatives --config gcc

and select /usr/bin/gcc-4.0 by hand, or instead execute directly:

sudo update-alternatives --set gcc /usr/bin/gcc-4.0

which should have the same effect.


Regards,

-- 
Romain LENGLET



More information about the erlang-questions mailing list