Hi
I instal another gcc. And now I have two gcc ( gcc 4.0.1 and 4.2.0) instaled
But when I try change default gcc by: update-alternatives --config gcc i
have the answer:
There is only 1 program which provides gcc
(/usr/bin/gcc-4.0.1). Nothing to configure.
I install another gcc folow this step:
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --program-suffix=-4.2.0
make
make check-gcc
make install
What I do wrong ?
Any sugestions ?
Thanks for help
Martek
----- Original Message -----
From: "Tom Browder" <tom.browder@xxxxxxxxx>
To: <gcc-help@xxxxxxxxxxx>
Cc: "wp" <qwertygd@xxxxx>
Sent: Thursday, April 03, 2008 1:16 PM
Subject: Re: Help required to upgrade gcc
On Thu, Apr 3, 2008 at 5:46 AM, Rupert Wood <me@xxxxxxxxx> wrote:
Marek wrote:
...
To overwrite your existing GCC system you need to use "--prefix=/usr" on
the compile
I have used multiple versions of gcc for years (mostly under
redhat/fedora) and have had good luck with installing a new version
under the default /usr/local but using the configure option
'--program-suffix=-X.Y.Z' where the 'X.Y.Z' is the version number.
Then i can use 'gcc-X.Y.Z' or the default 'gcc' as desired, and I've
never had any conflicts beteen the various versions.
-Tom
P.S. And as Rup mentioned, I NEVER build in the gcc source directory.