LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-28-2005, 12:57 PM   #1
yellowdognerd
LQ Newbie
 
Registered: Aug 2005
Distribution: RedHat
Posts: 4

Rep: Reputation: 0
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
 
Old 08-28-2005, 01:22 PM   #2
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 494

Rep: Reputation: 35
You could install the 3.4.x series from source. then you could remove the 4.0.1 version
 
Old 08-28-2005, 01:26 PM   #3
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

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

Dave
 
Old 08-28-2005, 01:31 PM   #4
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 494

Rep: Reputation: 35
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.
 
Old 08-28-2005, 10:26 PM   #5
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
Quote:
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
 
Old 09-07-2005, 09:31 PM   #6
yellowdognerd
LQ Newbie
 
Registered: Aug 2005
Distribution: RedHat
Posts: 4

Original Poster
Rep: Reputation: 0
Hey, Thanks everybody, especially for the compat-gcc-32* info!
 
Old 09-08-2005, 03:52 PM   #7
yellowdognerd
LQ Newbie
 
Registered: Aug 2005
Distribution: RedHat
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 09-08-2005, 10:58 PM   #8
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
g77 comes in compat-gcc-32-g77
 
Old 09-09-2005, 12:31 PM   #9
yellowdognerd
LQ Newbie
 
Registered: Aug 2005
Distribution: RedHat
Posts: 4

Original Poster
Rep: Reputation: 0
Yeah, I know, I've installed it, but how do I use it?

Thanks
 
Old 09-09-2005, 12:46 PM   #10
logosys
Member
 
Registered: Jul 2005
Location: Texas
Distribution: RHEL4 - ES
Posts: 178

Rep: Reputation: 31
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
switching between gcc versions DrAMac Debian 2 08-30-2005 05:21 PM
Two gcc Versions On The Same Installation? Xian Debian 4 08-16-2005 02:07 AM
multiple versions of gcc Avatar33 Linux - General 3 02-22-2005 02:06 PM
Can you have two different versions of gcc on the same system? the theorist Linux - Software 1 02-23-2004 04:53 PM
changing gcc versions SirRobbin Linux - Newbie 0 08-27-2003 09:54 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration