PDA

View Full Version : Fortran compiler (f77)




brendel95
Nov 12, 2005, 10:32 PM
I need to use f77 for OSX, but I can't find it anywhere. (Free version would be good like gcc). Is there any website or anyone that can help me to install f77 on my mac.

Thanks in advance



Billicus
Nov 12, 2005, 11:06 PM
Hi, I have a GNU compiler installed on my computer via Fink (Fink Commander). I'll briefly walk you through the steps to get it set up.

1. Download and install Fink. (http://fink.sourceforge.net/download/)
2. Download and install Fink Commander. (http://finkcommander.sourceforge.net/)
3. Search for and install the package "g77".

After this is complete you should be able to use the compiler from the command line in the format g77 imput.f output.o

:)

Nuc
Nov 12, 2005, 11:18 PM
Why not use F95. I'm using the gfortran compiler, it's pretty good. It is backwards compatible to f77 I believe.

Nuc

brendel95
Nov 13, 2005, 09:44 AM
Why not use F95. I'm using the gfortran compiler, it's pretty good. It is backwards compatible to f77 I believe.

Nuc

Is F95 free? And where I can find it?
Most of the code that have failed under g77 (old code and math library). That is why I am trying to get f77 specifically.

Nuc
Nov 13, 2005, 10:54 AM
I'm not to sure about getting F95 specifically. I was meaning to write in Fortran 95. I was talking about gfortran (http://hpc.sourceforge.net/). I think if you try this link and download the g95 (gfortran) you might get better results, but don't take my word for it.

To get f77 you might be able to download some trial based software such as NAGware. Absoft Fortran is also another program. IBM (http://www-306.ibm.com/software/awdtools/fortran/xlfortran/features/xlf-aix.html) makes one as well. These all should be backwards compatible with fortran 77. Of course these will cost you some money. But you could use them on a trial basis and see if it works.

Hope this works let us know.

Nuc

brendel95
Nov 13, 2005, 01:37 PM
I'm not to sure about getting F95 specifically. I was meaning to write in Fortran 95. I was talking about gfortran (http://hpc.sourceforge.net/). I think if you try this link and download the g95 (gfortran) you might get better results, but don't take my word for it.

To get f77 you might be able to download some trial based software such as NAGware. Absoft Fortran is also another program. IBM (http://www-306.ibm.com/software/awdtools/fortran/xlfortran/features/xlf-aix.html) makes one as well. These all should be backwards compatible with fortran 77. Of course these will cost you some money. But you could use them on a trial basis and see if it works.

Hope this works let us know.

Nuc

Thanks for the input. And I will try those free trial thing.

superbovine
Nov 13, 2005, 06:19 PM
might or might not help

http://developer.apple.com/hardware/ve/fortran.html
http://hpc.sourceforge.net/