Fortran and mac

Hi, I don't have much programming experience, I only know python now, all I can do is type "python" in terminal and write.
Fortran doesn't work this way. I've downloaded gfortran-4.2.3, gfortran-snwleo-intel-bin, and gfortran-macosx-x86. but nothing happens after I open the installation package.
Can someone give me step-by-step instructions on how to code in Fortran, assuming all I know is the language.
Thanks

MacBook Pro, 17", i7, Mac OS X (10.6.5)

Posted on Dec 13, 2010 12:48 AM

Reply
4 replies

Dec 13, 2010 8:18 AM in response to kn92

FORTRAN is not even close to Python. FORTRAN started in the days of 80 Column punched cards, and is mostly used in Scientific computing.

I do not know why you want to play with FORTRAN, but unless it is essential for work, I would suggest you consider C. C is only a little younger than FORTRAN, however, C is still widely used.

The only Apple forums that might have someone with a FORTRAN clue would be:
Developer < http://discussions.apple.com/forum.jspa?forumID=727 >
Software Development 101 < http://discussions.apple.com/forum.jspa?forumID=728 >
Unix < http://discussions.apple.com/forum.jspa?forumID=735 >

Dec 13, 2010 8:52 AM in response to kn92

I've had a Fortran compiler installed on my Intel OS X based Mac,

My girlfriend was studying Maths/Stats in University and she had a Fortran based module, and as I'm sure you are aware, in an academic environment requiring Fortran, C is not a substitute, however more robust it may be.

I think I got my Compiler here at the time: http://gcc.gnu.org/wiki/GFortranBinaries#MacOS

You basically just type the Fortran code into a text file and compile it,

you can then execute all through command prompt, there is an Xcode plugin so you can write directly in the IDE but this I suspect, is overkill.

Hope this helps,
John

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Fortran and mac

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.