Installing gfortran-6 on Ubuntu

add-apt-repository ppa:ubuntu-toolchain-r/test
apt update
apt install gfortran-6

If you want older versions of gfortran

apt install gfortran-5

  Then you can select which compiler version among multiple versions installed

Install Gfortran compiler on MacOS

brew install gcc

Categories:

Updated: