LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   installing GCC (https://www.linuxquestions.org/questions/linux-software-2/installing-gcc-100570/)

kudos 10-05-2003 04:02 PM

installing GCC
 
HI

i have compliled and maked the GCC files

i am installing Version 3.3.1 here
downlaoded form

ftp://sources.redhat.com/pub/gcc/rel...-3.3.1.tar.bz2

i ran
./configure
make bootstrap
make install


i got no erros nor did it stop on any of the config or makes...

i have found its install folder in
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/

when i run gcc -v i get
Reading specs from /usr/lib/gcc-lib/i586-pc-linux/2.95.2.1/specs
gcc version 2.95.2.1 19991024 (release)


how do i correct it to run on new version?


many thanks
kudos

david_ross 10-05-2003 04:08 PM

Remove or rename the version that is in your path. To find out where it is:
whereis gcc

Then create a link eg:
ln -s /path/to/new/gcc /usr/bin/gcc

Mara 10-05-2003 04:08 PM

Your old gcc is before the new one in PATH. For short time, something like
export PATH=/usr/local/bin:$PATH
should work. Better idea is to modify the symlinks there are for older gcc (and point them to the new one) or uninstall older gcc (new one should work then).

kudos 10-05-2003 04:38 PM

Many thanks

did as david_ross said, and its picked it up fine :)

many thanks
kudos


All times are GMT -5. The time now is 03:07 AM.