![]() |
Need Two Versions of gcc on FC4
Hello,
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. Thanks, Liz |
You could install the 3.4.x series from source. then you could remove the 4.0.1 version
|
There's 'compat-gcc-32-*' packages which contain the GCC 3.2 collection. They should be in YUM, or on your CDs.
Dave |
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.
|
Quote:
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 |
Hey, Thanks everybody, especially for the compat-gcc-32* info!
|
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.... Thanks, Liz |
g77 comes in compat-gcc-32-g77
|
Yeah, I know, I've installed it, but how do I use it?
Thanks |
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 04:06 AM. |