-   Linux - Software (
-   -   Need Two Versions of gcc on FC4 (

yellowdognerd 08-28-2005 01:57 PM

Need Two Versions of gcc on FC4

I have FC4 which has version 4 of gcc, with gfortran.

I have some old FORTRAN programs that I need g77 to compile (the documentation for gfortran recommends that you continue to use g77 if you had f77 programs that work with it).

I think gfortran replaced g77 when gcc went to version 4.

When I try to install the g77 rpm (version 3.3.something), I get an error saying it requires gcc 3.3.something.

So I need to be able to have two versions of gcc, I think. I can't remove gcc4 because there are so many dependencies, so it looks like I have add the older version. RPM won't let me do this because it conflicts with the newer version.

How can I do this? I haven't found any way to get RPM to do it using any of the switches like --oldpackage.


corbis_demon 08-28-2005 02:22 PM

You could install the 3.4.x series from source. then you could remove the 4.0.1 version

ilikejam 08-28-2005 02:26 PM

There's 'compat-gcc-32-*' packages which contain the GCC 3.2 collection. They should be in YUM, or on your CDs.


corbis_demon 08-28-2005 02:31 PM

And anyways, the 3.4.x series is much more stable than the newer version. So you won't really be missing out too much by replacing. Of course, you have to be careful, coz fedora makes such an issue with dependencies. And it's got n number of packages that depend on the native install of gcc. So go about it really carefully.

foo_bar_foo 08-28-2005 11:26 PM


Originally posted by corbis_demon
You could install the 3.4.x series from source. then you could remove the 4.0.1 version
no no never replace your "system" compiler in /usr/bin
the dependancy issue is not a big deal fedora makes it is actually a big deal

you can compile and install many other compilers just put them in /opt

yellowdognerd 09-07-2005 10:31 PM

Hey, Thanks everybody, especially for the compat-gcc-32* info!

yellowdognerd 09-08-2005 04:52 PM

Stupid question:

How do I invoke g77 now that I've installed contrib-gcc*? "g77" doesn't work-- do I use gfortran with an option?

I can't find documentation anywhere....


foo_bar_foo 09-08-2005 11:58 PM

g77 comes in compat-gcc-32-g77

yellowdognerd 09-09-2005 01:31 PM

Yeah, I know, I've installed it, but how do I use it?


logosys 09-09-2005 01:46 PM

Where did teh RPM install to? you need to make sure that it's in your $PATH, otherwise, the system won't be able to find it.

All times are GMT -5. The time now is 06:58 PM.