gcc install/upgrade question

bruce bedouglas at earthlink.net
Mon Nov 5 14:58:21 UTC 2007

hi ralf/all...

thanks for the replies. however, i'm not sure if anything else has to be
done to be able to access the new gcc4.2 compiler/libs from the compiler.
i'm pretty certain that i'd have to modify my env vars/paths, but i'm not
sure where/what files...

any thoughts?

-----Original Message-----
From: fedora-list-bounces at redhat.com
[mailto:fedora-list-bounces at redhat.com]On Behalf Of Ralf Corsepius
Sent: Monday, November 05, 2007 5:23 AM
To: For users of Fedora
Subject: Re: gcc install/upgrade question

On Mon, 2007-11-05 at 19:03 +0900, John Summerfield wrote:
> bruce wrote:
> > hi...
> >
> > a basic question.
> >
> > fc6 comes with gc4.1 . i'm looking to test gc4.2, and would like to have
> > parallel dev environment so i have both 4.1 and 4.2.
> >
> > i'm trying to find pointers on what needs to be done, to make sure i
> > screw up the current 4.1 environment.
> >
> > it appears that all i need to do is to set a prefix dir when i do the
> > initial configure.
> >
> >  --./configure --prefix=/gcc42
> >  --make
> >  --make install
> >
> > this appears to place everything under the gcc42 top level dir. however,
> > what will i need to do to actually be able to hook into the libs/objs
> > created by the gcc4.2 build. what will i have to insert into my paths,
> > rather where should the information be placed.. in the bashrc/profile
> > files/etc...
> The standard way in this case is to follow the supplier's advice:FSF in
> this case. It should install to /usr/local, well out of your way and
> defined by standards to be used this way.
If you do this, you are replacing the "system compiler" with a local one
(/usr/local is special to gcc!). You will rarely want to do this under

Much less error prone is to install to a
prefix != /usr and prefix != /usr/local.

The LSB recommended way would be to install to /opt or a subdirectory
thereof (e.g. --prefix=/opt/gcc42).


fedora-list mailing list
fedora-list at redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

More information about the fedora-list mailing list