LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can you have two different versions of gcc on the same system? (https://www.linuxquestions.org/questions/linux-software-2/can-you-have-two-different-versions-of-gcc-on-the-same-system-149649/)

the theorist 02-23-2004 03:21 PM

Can you have two different versions of gcc on the same system?
 
Can I put two different versions of gcc, specifically, 3.3 and 2.96 on the same system?
All of the standard libraries and headers should be kept separate.

I'll be doing this under Fedora core 1, which already has 3.3.2 installed. I would like the older one on there to do some testing. Bonus points if I can do it with rpms.

Any ideas?

Mara 02-23-2004 04:53 PM

With RPMs, you usually can't. But it will work when you compile older gcc from source. Just download source of the right version and compile (but make sure it goes to /usr/local or a smilar directory).


All times are GMT -5. The time now is 05:49 AM.