[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Installing second gcc

On Tue, Mar 04, 2003 at 02:19:22AM +1100, Russell Shaw wrote:
> Colin Watson wrote:
> >On Mon, Mar 03, 2003 at 11:18:45PM +1100, Russell Shaw wrote:
> >>Is there a debian way to make the system use 3.2, or do i just
> >>rename gcc-3.2 to gcc and apt-remove the old gcc?
> >
> >See /usr/share/doc/gcc-3.2/README.Debian.gz.
> >
> >>"update-alternatives --display gcc" says there's no alternatives.
> >
> >Deliberately so, yes.
> Hi,
> I haven't configured alternatives before. I get an error:
> --------------------------------------------------------
> russell@main#: update-alternatives --config cc
> There is only 1 program which provides cc
> (/usr/bin/gcc). Nothing to configure.
> --------------------------------------------------------

There are no alternatives for gcc (cc is different). This is a
deliberate maintenance choice. Forget about using alternatives for this.

> Currently,
>   /etc/alternatives/cc -> /usr/bin/gcc -> gcc-2.95
> In /usr/bin, there is gcc-2.95, gcc-3.0, and gcc-3.2. What is
> the proper way to make gcc-3.2 the system default?

CC=gcc-3.2 in the environment, or upgrade the gcc, g++, etc. packages to
ones where the gcc symlink points to gcc-3.2. (You could also
dpkg-divert /usr/bin/gcc, /usr/bin/g++, etc. and put a different symlink
there instead. Just remember that you've done so if you take that


Colin Watson                                  [cjwatson@flatline.org.uk]

Reply to: