I just installed the GNU Fortran compiler on my MAC OS X machine. I seemed to install without any errors, with the message "The programs have been installed in /usr/local/gfortran/". How do I start this compiler? I can't find any directory named /usr/local/gfortran/!
Is GNU Fortran the best choice? I have a small legacy Fortran program that I would like to convert (and extend) to python.
Thanks, Jerry
How to start the GNU Fortran compiler.
Page 1 of 13 Replies - 555 Views - Last Post: 26 January 2013 - 04:30 PM
Replies To: How to start the GNU Fortran compiler.
#2
Re: How to start the GNU Fortran compiler.
Posted 26 January 2013 - 03:45 PM
If the installation was successfulč you should be able to run the compiler simply by typing gfortran mycode.f (where mycode.f is your source file).
However if the installer says it installed to /usr/local/fortran and that directory does not actually exist, the installation probably wasn't successful.
However if the installer says it installed to /usr/local/fortran and that directory does not actually exist, the installation probably wasn't successful.
#3
Re: How to start the GNU Fortran compiler.
Posted 26 January 2013 - 03:58 PM
gfortran --version
should confirm if it is installed. At least, it does from MSYS on Windows - assume it's the same command on OSX.
This post has been edited by andrewsw: 26 January 2013 - 03:59 PM
#4
Re: How to start the GNU Fortran compiler.
Posted 26 January 2013 - 04:30 PM
sepp2k, on 26 January 2013 - 05:45 PM, said:
If the installation was successfulč you should be able to run the compiler simply by typing gfortran mycode.f (where mycode.f is your source file).
However if the installer says it installed to /usr/local/fortran and that directory does not actually exist, the installation probably wasn't successful.
However if the installer says it installed to /usr/local/fortran and that directory does not actually exist, the installation probably wasn't successful.
Thanks Sepp2k! It was as easy as that.
Jerry
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|