Fortran compiler (f77)

Discussion in 'Mac Programming' started by brendel95, Nov 12, 2005.

  1. macrumors regular

    Joined:
    May 23, 2005
    #1
    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
     
  2. macrumors 6502a

    Billicus

    Joined:
    Apr 3, 2002
    Location:
    Charles City, Iowa
    #2
    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.
    2. Download and install Fink Commander.
    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

    :)
     
  3. Nuc
    macrumors 6502a

    Nuc

    Joined:
    Jan 20, 2003
    Location:
    TN
    #3
    gfortran

    Why not use F95. I'm using the gfortran compiler, it's pretty good. It is backwards compatible to f77 I believe.

    Nuc
     
  4. thread starter macrumors regular

    Joined:
    May 23, 2005
    #4
    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.
     
  5. Nuc
    macrumors 6502a

    Nuc

    Joined:
    Jan 20, 2003
    Location:
    TN
    #5
    I'm not to sure about getting F95 specifically. I was meaning to write in Fortran 95. I was talking about gfortran. 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 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
     
  6. thread starter macrumors regular

    Joined:
    May 23, 2005
    #6
    Thanks for the input. And I will try those free trial thing.
     
  7. macrumors 68030

    superbovine

    Joined:
    Nov 7, 2003

Share This Page