gfortran on MacOS X

If you just want to use the precompiled gfortran, use APT/RPM as follows.

How to Install a Precompiled Binary Package

A binary package is available as an RPM which can be installed using APT/RPM as

$ sudo apt-get update
$ sudo apt-get install gcc
$ sudo apt-get clean

Notice that this will replace your default gcc compilers (gcc and g++), which is necessary to allow mixed use of C, C++, and FORTRAN for a single application. The default gcc compilers can be switched by using the "update-altarnatives" command as follows and answering the questions:

$ sudo update-alternatives --config gcc


 

REMARKS



Back to Keisuke Fujii's HEP on X Page
keisuke.fujii@kek.jp Apr. 8, 2018