Installing gfortran 64 and 32bit

Conrad McGarry updated July 17, 2014 at 6:19 PM


This wiki explains how to download and install 64-bit and 32-bit gfortran.

We recommend that you code using the latest 64-bit gfortran. 32-bit gfortran is only intermittently updated and may be discontinued in the future. However, 32-bit gfortran remains available at IGPP to run legacy code. 

Prerequisite: Install Xcode and Xcode Command Line Tools

For most users running a recent Mac OS version, Xcode can be downloaded via the App Store under /Applications/App

Please see the wiki on installing Xcode from the App Store. Included in the wiki is how to install Xcode Command Line Tools:

If you're using an older version of Mac OS, the App Store's Xcode usually won't support it. Downloads for legacy versions of Xcode can be downloaded by registering for a free developer account:
Xcode 4 for OS X 10.6:

Install 64-bit gfortran

  1. Download the latest 64-bit installation package at
  2. Open and run the installer located in the Downloads folder.

Install 32-bit gfortran

  1. Download the latest 32-bit installation package at
  2. If not available on the website, 32-bit gfortran v4.6.1 32-bit gfortran v4.6.1 can be downloaded here: gfortran-4.6.1-i686-SnowLeopard.dmg
  3. Open and run the installer located in the Downloads folder.

If you need further assistance, please contact IGPP Net Ops.