Skip to main content
Engineering LibreTexts

22.2: Obtaining The Compiler

  • Page ID
    54391
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    First, you will need to download and install the GNU Fortran compiler. The main web page for the GNU Fortran compiler is:

    http://gcc.gnu.org/fortran/

    This page provides general information regarding the Fortran compiler development effort, project objectives, and current status.

    More specific information, and the Windows compiler binaries, can be found on the gFortran Wiki page, which is located at:

    http://gcc.gnu.org/wiki/GFortran

    This page contains links to the Gfortran binaries. On this page, click on the link labeled:

    Binaries for Windows, Linux, and MacOS

    Which will display the page for the GNUBinaries for various platforms, including Windows, MacOS, and Linux. Click on the appropriate link Windows, MacOS, GNU/Linux.

    Windows Download and Install

    When selected, Windows link will show the various Windows installer options. For standard Windows (XP/Vista/7/8), the heading MinGW build (“native Windows” build), includes a link for the latest installer. Click on the link and download the Windows installation program. You will need to access this file to perform the actual installation. There is no need to install the MinGW build.

    This version will work on all supported Windows versions including Windows Vista, Windows XP, Windows 7, Windows 8, and Windows 10.

    After downloading, install the compiler. The installation can be accomplished by double-clicking on the downloaded file. As with all Windows installs, it will require System Administrator privileges. Once the installation has been completed, the downloaded installation file can be deleted.

    MacOS Download and Install

    When selected, MacOS link will show the various MacOS installer options. Choose the appropriate download link based on your specific MacOS version (from the listed options). After the download is complete, click on the downloaded file and perform the installation. The installation will require the system password. Once the installation has been completed, the downloaded installation (.dmg) file can be deleted.

    In order to develop programs on the MacOS, Xcode1, the integrated development environment, is required. The Xcode application can be downloaded from the Apple App Store or via iTunes. An Apple account is required. If you do not have an Apple account, you can obtain a free developer account (developer.apple.com).


    1. For more information, refer to: https://en.Wikipedia.org/wiki/Xcode

    This page titled 22.2: Obtaining The Compiler is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by Ed Jorgensen via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.

    • Was this article helpful?