This article explains the steps to install gfortran on MAC OSX using homebrew cask

  • App Name – gfortran
  • App Version – 6.3
  • App url – https://gcc.gnu.org/wiki/GFortranBinaries
  • App dmg file – packagedmglink
  • App appcast link – https://github.com/fxcoudert/gfortran-for-macOS/releases.atom

Steps To Install gfortran

  • Open Spotlight search using “command + space” button and type “Terminal“. Then press “return/enter” key. This will open terminal.

    spotlight search terminal

  • Run the following command in terminal to install brew cask

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null

    Install brew cask on mac

  • Now install gfortran with the following command

    brew install --cask gfortran

  • gfortran is installed now and ready to use!