Unix Programming - Re: Updating GCC

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > June 2004 > Re: Updating GCC





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Updating GCC
Maurizio Loreti

2004-06-26, 10:10 am

Nils O. Selåsdal <NOS@Utel.no> writes:

> Simply run rpm -e on the rpms you have, then run make install again
> in the gccbuild directory.


Be warned. Since this will also remove the shared libraries, every
executable compiled against them cannot be run

> This creates a problem if you want to upgrade gcc yet again though, as now
> there is no rpms. You could also install it in its own dir by e.g.
> configure with --prefix=/opt/gcc340


The right way, if you want to install from the tar.gz distribution, is
to leave in /usr/bin the old gcc, install the new one under a
different tree, e.g. /opt/gcc340, and put in PATH first
/opt/gcc340/bin, and in LD_LIBRARY_PATH first /opt/gcc340/lib .

> Another option is to get the latest rawhide src.rpm and rebuild that.
> Look under e.g. ftp://ftp.uio.no/linux/Fedora/core/development/SRPMS/


This is the right way, if you want to --freshen your rpm's.

--
Maurizio Loreti http://www.pd.infn.it/~loreti/mlo.html
Dept. of Physics, Univ. of Padova, Italy ROT13: ybergv@cq.vasa.vg
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com