LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-01-2013, 03:09 PM   #1
Denni
LQ Newbie
 
Registered: Feb 2013
Posts: 4

Rep: Reputation: Disabled
In need of a Fortran 77 compiler for OPENSUSE


I need to download a Fortran 77 compiler to run a .f file for a school project on OPENSUSE.

I have the latest version of opensuse (12.2).

I have installed every last fortran related rpm from the repository: gcc-fortran, gcc33-fortran, gcc47-fortran, and still can't compile and execute the simple .f file.

From my research on the net i understand the gcc no longer hosts f77 compiler on any versions greater the 4.0.As well they no longer have the gcc-g77 compiler either. Why they would do this, i do not know because it seems to me that a number of people has had the same issue.

I have also tried to download the compat-g77 rpm, but have ran into dependency issues.

I am a newbi at opensuse, i know a few command lines to get me around the terminal but that is it. I have tried to download earlier versions of gcc but i don't know how to handle the file. There are alot of .h, .c and other files that i don't know what to do with.

Could someone could please guide me from scratch ( spoon feed me if you will) on how to set up a fortran 77 compiler on Opensuse 12.2 to run these .f files

Thank you

Last edited by Denni; 02-01-2013 at 03:16 PM.
 
Old 02-01-2013, 04:03 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

# zypper in gcc33-fortran

The package provides /usr/bin/g77-3.3
 
Old 02-01-2013, 04:33 PM   #3
Denni
LQ Newbie
 
Registered: Feb 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
I have already Zyppered gcc33-fortran and installed it, and i still cannot compile the .f files. Maybe i'm doing something wrong or i'm not using the gcc33-fortran correctly, i don't know. All i know is that when i use the g77 or f77 command the terminal does not recognize either.

Can you explain to me how i can go about using gcc33-fortran to compile the .f files.
 
Old 02-01-2013, 04:57 PM   #4
Denni
LQ Newbie
 
Registered: Feb 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Ok, i see that i have g77-3.3 in the root/usr/bin. Now, how do i get this to work, or how do i use this to compile my .f file? what is the command line used operate this g77 to compile the .f files?

Because when i use "g77 -c filename.f" the terminal is telling me g77 is a typo.

Last edited by Denni; 02-01-2013 at 04:59 PM.
 
Old 02-01-2013, 05:14 PM   #5
Denni
LQ Newbie
 
Registered: Feb 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Ok, i have it! I figured it out and now i look like a fool. No matter though. For any one else that is experiencing the same problem here is the solution.

Zypper/install the gcc33-fortran package, it does host g77-3.3 package for Fortran 77. Now, instead of using the conventional "g77" command to compile and run the program as i did, use "g77-3.3" in your command as it is saved under that title.

Thank you

Last edited by Denni; 02-01-2013 at 05:15 PM.
 
Old 02-01-2013, 05:30 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Or : $ cd /usr/bin/

# ln -s g77-3.3 g77
# ln -s g77-3.3 f77

... Then you will have the *77 for programs looking for g77 or f77.

-
 
Old 02-01-2013, 05:43 PM   #7
NyteOwl
Member
 
Registered: Aug 2008
Location: Nova Scotia, Canada
Distribution: Slackware, OpenBSD, others periodically
Posts: 512

Rep: Reputation: 139Reputation: 139
If you did need an alternate, I believe OpenWatcom have a FORTRAN 77 compiler available still.
 
  


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 sarayazdani Linux - Software 1 09-20-2008 11:59 AM
g77 in gcc 4.1.0 not found only gfortran fortran 95 compiler! I need fortran 77. TheBrick Linux - Software 3 07-04-2007 06:39 AM
Fortran compiler serafimg Ubuntu 1 01-28-2007 02:19 PM
Can't get a Fortran compiler Executor21 Linux - Newbie 1 01-15-2007 11:29 AM
does linux fortran compiler in fedora 4 support VAX FORTRAN? terrence Programming 17 08-31-2005 08:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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