PDA

View Full Version : gfortran installed but couldn,t run




Ghous Narejo
Feb 18, 2009, 07:56 PM
Hi,
I am new to MAC o/s . I have got mac book pro. I downloaded gcc ,g77 and gfortran.
I have tried to run all these and been successful in c compiler.
But i get a message command not found whenever i try to compile my fortran codes with gfortran ,or g77 compile command.
Can anyone help me please.

Thanks,

Ghous
:confused:



yeroen
Feb 18, 2009, 08:06 PM
If you installed it correctly (via the configure-make-make install sequence), gfortran should be installed in /usr/local/bin/. Check this directory for gfortran.

If it's in there, you need to put this directory path in your $PATH shell variable.

xyzeugene
Feb 19, 2009, 10:02 AM
If you dont want to create a path go to the directory where g77 is located and type ./g77

If you installed it correctly (via the configure-make-make install sequence), gfortran should be installed in /usr/local/bin/. Check this directory for gfortran.

If it's in there, you need to put this directory path in your $PATH shell variable.

lee1210
Feb 19, 2009, 10:20 AM
This isn't exactly what the OP asked, but i would also suggest g95 over gfortran at this point (though admittedly it has been a while since i have used gfortran). I linked to the binaries in a post the other day:
here's a link to binaries for OS X on x86
http://ftp.g95.org/g95-x86-osx.tgz

here's the link for PPC
http://ftp.g95.org/g95-powerpc-osx.tgz

-Lee