FORTRAN

From InterSciWiki

Jump to: navigation, search

http://en.wikipedia.org/wiki/Mac_OS_X_v10.5

Contents

[edit] Bash for Macbook

doug, your mac is probably using "bash" for its default shell (i.e., command prompt).. here are some useful links.

http://www.hypexr.org/bash_tutorial.php http://www.osxfaq.com/tips/unix-tricks/week105/wednesday.ws

this one is more for programming bash scripts (script=batch file): http://www.tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html

also, don't forget to google "mac bash" or "mac bashrc" : e.g.,

http://codesnippets.joyent.com/posts/show/1349
http://blog.jsks.us/index.php/2008/08/18/mac-bashrc-tip/

good luck! Jeff Stern

[edit] unix commands

gfortran -o myprog myprog.f

[edit] Fortran compilers for Macbook OX 10.5 (Leopard)

http://www.thefreecountry.com/compilers/fortran.shtml

gfortran 95/2003

Binaries

MacOS

gfortran is available as an Apple-style installer for MacOS X Tiger (10.4) and Leopard (10.5) users. It is easy to install. Detailed instructions are here. Both PowerPC and Intel compilers are provided:

   *PowerPC: download (2009-02-03; Leopard only)
   *Intel: download (2008-12-11; Tiger and Leopard) 
http://gcc.gnu.org/wiki/GFortran#manuals

There's also an Xcode plugin for gfortran in OS X Tiger (10.4) only which uses the binaries compiled by Gaurav Khanna.

[edit] Also try (older)

Try going to the gfortran wiki http://gcc.gnu.org/wiki/GFortran. Of particular interest may be the http://gcc.gnu.org/wiki/GFortranBinaries page.