LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-12-2005, 01:36 PM   #1
hhegab
Member
 
Registered: Apr 2002
Location: IL, USA
Distribution: Fedora 13, Ubuntu 10.04 LTS
Posts: 162

Rep: Reputation: 30
Fedora Core4 and g77 compiler


Hi,

As you all know FC4 comes with gcc4 which does not have g77 fortran compiler.
I would liek to know if it is possible to (add) g77 to FC4?
I am not a programmer, and I don't know what to do to have g77 (and f77) back as I have packages that depend on (and was written for) these compilers. I also want to have the option -lg2c to work again.
If it is possible to have g77 (f77) on FC4 please tell me how, and what packages should I install? I have no internet connection at home, so please specify the packages and I shall download them and install them.

Thank you very much for the help.

hhegab

Last edited by hhegab; 12-12-2005 at 01:39 PM.
 
Old 12-16-2005, 02:04 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Here go:
http://download.fedora.redhat.com/pu...0-0.8.i386.rpm
 
Old 12-16-2005, 03:13 PM   #3
sirclif
Member
 
Registered: Sep 2004
Location: south texas
Distribution: fedora core 3,4; gentoo
Posts: 192

Rep: Reputation: 30
i think the link is to download gfortran. the man page for gfortran says:

"Gfortran is not yet a fully comformant Fortran 95 Compiler...For those whose Fortran codes conform to either the Fortran 77 standard or the GNU Fortran 77 language, we recommend to use g77 from GCC 3.4. We reommend that distrubutors continue to provide packages of g77-3.4 until we announce that gfortran fully replaces g77."

i'm not sure if you can just install g77-3.4 without installing gcc-3.4, but i doubt that you can. you can either install gcc-3.4 along with gcc-4.0, or search for another compiler. i did a google search on fortran 77 compilers and got several pages on the subject.
 
Old 12-16-2005, 08:19 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
i think the link is to download gfortran
Sorry, I just assumed it was the g77 plugin RPM for gcc...
 
Old 12-17-2005, 01:28 AM   #5
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
You should install the "compat-gcc-32-g77" package. (yum install compat-gcc-32-g77)
 
Old 12-17-2005, 08:27 AM   #6
hhegab
Member
 
Registered: Apr 2002
Location: IL, USA
Distribution: Fedora 13, Ubuntu 10.04 LTS
Posts: 162

Original Poster
Rep: Reputation: 30
I have no internet connection at home, so I would like to know if it has any dependencies.

thanks,

hhegab
 
Old 12-18-2005, 12:00 PM   #7
hhegab
Member
 
Registered: Apr 2002
Location: IL, USA
Distribution: Fedora 13, Ubuntu 10.04 LTS
Posts: 162

Original Poster
Rep: Reputation: 30
I have installed the package and it added the g77 support thank you!
Well, I have a little problem now. It seems that the "-lg2c" option does not work. Any clue(s)?

hhegab
 
Old 12-18-2005, 04:29 PM   #8
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
this might help
 
Old 12-18-2005, 04:57 PM   #9
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
If you want to use stuff like "argc", you'll also need to have "libg2c.a" (a static library) or "libg2c.so" dynamic):

http://lists.debian.org/debian-mento.../msg00133.html

Otherwise, you might be able to get away with simply *excluding" the "-lg2c" from your link line.
 
  


Reply



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
Fortran compiler gcc-g77 installation problem refp16 Linux - Software 6 11-26-2005 12:49 PM
f5d6020 v2 in Fedora Core4 Lib_not_found Linux - Networking 1 10-31-2005 02:16 AM
Fedora Core4 issues... DrunkenDisciple Linux - Software 3 10-12-2005 12:01 PM
install fedora core4 hi_all General 3 05-10-2005 07:54 AM
gcc/g77 compiler in FC2? serendipitysdc Fedora 1 06-24-2004 04:19 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:33 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration