LinuxQuestions.org
Review your favorite Linux distribution.
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 08-13-2008, 09:16 AM   #1
ron7000
Member
 
Registered: Nov 2007
Location: CT
Posts: 248

Rep: Reputation: 26
Fortran (f77) for linux? need compiler for SLES10 preferably free


what Fortran compilers are available for linux?
I am running Suse Linux Enterprise Server 10 sp1 on an intel Itanium2 system (ia-64).
That gives gfortran as a fortran compiler but it will not compile fortran code that will compile in f77.
Is there a way to get f77/f90/f95 for free?
If I have to pay for it, who's good?
 
Old 08-13-2008, 09:29 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
http://gcc.gnu.org/fortran/
 
Old 08-13-2008, 09:40 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
If you have an intel cpu, you can try the Intel Fortran Compiler for Linux (ifort). The non commercial license is free: read carefully the requirements to obtain this kind of license and see if you match them. Basically (quoting from the Intel site):
Quote:
Non-commercial means you are not getting compensated in any form for the products and services you develop using these Intel® Software Development Products.
...
Note that academic use of the products does not qualify for a non-commercial license.
You can also get the Intel C/C++ compiler. Start looking at the Intel site, here.
 
Old 08-13-2008, 09:53 AM   #4
ron7000
Member
 
Registered: Nov 2007
Location: CT
Posts: 248

Original Poster
Rep: Reputation: 26
Question

i've looked at the gcc fortran link and maybe i'm dumb but how or where do I download it from?
That page has nothing useful

gnu says they dropped g77 under version 4 of the gcc and gfortran is fortran95.
I am looking for the old f77 compiler, I find links here and there but never anything that lets me download the compiler so I can build it.
If anyone can tell me how to get it, I would be very grateful.

I also have the intel compilers, and what a pita it is with licensing.
But for gnu stuff I sometimes want to build, it wants f77 not ifort.

Last edited by ron7000; 08-13-2008 at 09:55 AM.
 
Old 08-13-2008, 10:08 AM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
SuSE should have the fortran compiler in the repositories. Just use YaST and search for it. You should always check your distribution's repositories before going anywhere else - it's much easier to manage software which your package manager knows about.

Last edited by matthewg42; 08-13-2008 at 10:09 AM.
 
Old 08-13-2008, 10:22 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by ron7000 View Post
But for gnu stuff I sometimes want to build, it wants f77 not ifort.
The Intel fortran compiler is fully compatible with the Fortran 77 standard, so you can simply create a link to ifort somewhere in your path, e.g.
Code:
ln -s /opt/intel/fc/10.0.026/bin/ifort /usr/bin/f77
or assign the value "ifort" to the F77 environment variable, as required by some software installation procedures.

Following the suggestion by matthewg42, you can try to search "fortran" in Yast package management. You will find something like gcc42-fortran. Maybe this is what you're looking for.
 
Old 08-14-2008, 11:52 AM   #7
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Surely fortran95 is backward compatible with fortran 77?
 
Old 08-14-2008, 12:21 PM   #8
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by jiml8 View Post
Surely fortran95 is backward compatible with fortran 77?
I compiled both Fortran90 and pure Fortran77 codes, using the Intel compiler (version 10.0) without any special option. The f77 program was a quite complex oceanographic model, and the compiler worked without a glance.
 
  


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
What is the best 3d modelling and animation program for linux(preferably free) cowboy45 Linux - Software 4 01-09-2012 01:37 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
how to use a library in f77 or itel fortran compiler ztdep Programming 1 12-31-2005 03:55 PM
does linux fortran compiler in fedora 4 support VAX FORTRAN? terrence Programming 17 08-31-2005 08:59 AM
best linux Distro? preferably FREE Norin311 Linux - Software 65 10-08-2004 12:35 AM

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

All times are GMT -5. The time now is 12:56 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