Absoft compiler suites are source compatible across the different platforms which means that in most cases, only a recompile is needed to port code from one environment to another. The and recommend this method.Ībsoft manufactures high performance Fortran compiler suites for Windows, Macintosh(Intel & PPC), Intel/AMD Linux and PPC/Linux based systems. Installed on your machine, download the appropriate version of gfortran from. Installing a version that matches system compilers If you want the version of gfortran to match the versions of gcc, g, etc. In the two years since, Homebrew has grown a lot as a project and has proved more maintainable than MacPorts, which can require a lot of PATH hacking. Originally, I preferred MacPorts when I wrote this answer. I have tried all of these methods except for 'Fink' and 'Other Methods'.