Article View: dc.org.linux-users
Article #195Re: need help installing gcc
From: Tiny Human Ferret
Date: Tue, 01 Jan 2002 18:30
Date: Tue, 01 Jan 2002 18:30
59 lines
2849 bytes
2849 bytes
[posted and mailed]
Peter Lee wrote:
>
> Hi,
>
> I am trying to upgrade my version of gcc. I followed the instructions by
> checking out the CVS tree, then running "cvs update"
>
> Next, I made the directory in /usr/local/gcc/ using mkdir. Then I switched
> to /usr/local/gcc/ with cd. Then I ran ran /root/Downloads/gcc/configure
>
> Next, the whole thing was built with "make bootstrap"
>
> Finally, "make install" was typed in. That's about all the instructions
> given by GNU says to do at http://gcc.gnu.org/install/. The problem is, I
> don't think that gcc was updated since I still get 2.9x when I type "what
> gcc" I'm at a loss as to what to do now.
>
> Thank you for the help,
Ooopsies. I've done this too.
First, try `which gcc` and you might find that it's /usr/bin/gcc
But you probably let it configure with the default prefix, which is
/usr/local
So, you are probably going to have a lot of messie to clean up.
But go back to your source code, and
make clean ; make distclean ; rm config.cache
and when you reconfigure, if your `which gcc` returned "/usr/bin/gcc", then
configure with
./configure --prefix=/usr
which will install the new gcc and libraries in more or less the proper
place.
You might still wind up having to move and/or copy a lot of libraries that
will install in /usr/lib into /lib
take a good look to see if you have duplicate libraries in /lib /usr/lib and
/usr/local/lib -- try comparing a list and checking the dates they were
written to the drive, if you remember the date that you did this build.
>
> Peter
> pelee@vt.edu
--
Be kind to your neighbors, even though they be transgenic chimerae.
Whom thou'st vex'd waxeth wroth: Meow. <-----> http://earthops.net/klaatu/
Technical Details
Message-ID:
<3C320058.F94E0606@earthops.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feeder.qis.net!nntp1.roc.gblx.net!nntp.gblx.net!nntp.gblx.net!vienna7.his.comReferences:
<a0o5er$dpp$1@solaris.cc.vt.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11663c,d34def28db1a2f5d X-Google-Attributes: gid11663c,public X-Google-ArrivalTime: 2002-01-01 10:32:15 PST Message-ID: <3C320058.F94E0606@earthops.net> Date: Tue, 01 Jan 2002 13:30:48 -0500 From: Tiny Human Ferret <ixnayamspay_klaatu@earthops.net> Organization: copyright 2001 all rights reserved -- non-UseNet transmission prohibited. X-Mailer: Mozilla 4.5 [en] (X11; U; Linux 2.2.17 i586) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: dc.org.linux-users Subject: Re: need help installing gcc References: <a0o5er$dpp$1@solaris.cc.vt.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 65.205.1.226 X-Trace: vienna7.his.com 1009909931 65.205.1.226 (1 Jan 2002 13:32:11 -0500) Lines: 59 X-Authenticated-User: tjh22isp Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feeder.qis.net!nntp1.roc.gblx.net!nntp.gblx.net!nntp.gblx.net!vienna7.his.com