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

$ su
# apt-get update
# apt-get install gcc
# apt-get clean
# exit

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:

$ su
# update-alternatives --config gcc
# exit


 

REMARKS



Back to Keisuke Fujii's HEP on X Page
keisuke.fujii@kek.jp May 03, 2012