HPC Mac OS X offers GCC builds, which include gfortran.Other projects packaging GCC (and gfortran) binaries for Mac include: You can also install from other project packing software like macports or homebrew : OS X Mountain Lion (10.8): download gfortran 4.8.2
OS X Mavericks (10.9): download gfortran 4.9.0 or gfortran 4.8.2
OS X Yosemite (10.10): download gfortran 5.2 or gfortran 4.9.2 OS X El Capitan (10.11): download gfortran 6.1 MacOS Sierra (10.12): download gfortran 6.3 The gfortran maintainers offer nice Apple-style installers for: Once it is installed, you can open a terminal window and check if it has been installed:įortran is not available with Xcode. You can download it from the App Store. Once it is installed and you start it, it will ask you to install command line tools.