LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   working with two gcc ?! (https://www.linuxquestions.org/questions/linux-newbie-8/working-with-two-gcc-594557/)

muby 10-25-2007 12:00 PM

working with two gcc ?!
 
greeting to everyone,

i wanted to install older gcc (gcc-3.3.3) while gcc-4.1 was already exits
i did this

Quote:

[root@localhost ~]# rpm -ivh gcc-3.3.3-1.src.rpm
1:gcc ########################################### [100%]
&
Quote:

[root@localhost ~]# export CC=gcc-3.3.3
but when i run ./configure, i get
Quote:

[root@localhost ns-2.31]# ./configure
No .configure file found in current directory
Continuing with default options...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc-3.3.3
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
im very new to linux & not sure where i did wrong
where can i find my rpm installation? & how to set path to it?

thank you very much.

Muby

elfoozo 11-10-2007 11:17 PM

You should be able to switch between gcc versions by updating the symlink gcc points to in /usr/bin. Install the regular gcc-3.3.3 binary (not src) RPM and delete/recreate the symlink to gcc-4.1 or gcc-3.3 before you use gcc.


All times are GMT -5. The time now is 09:51 PM.