After some years as a MacPorts user I decided to give home brew a try, which are advertising their package manager with the sentence “Homebrew — MacPorts driving you to drink? Try Homebrew!”. The idea is not to build everything from scratch and create another software micro cosmos but to reuse existing Mac OS X abilities and save some space (as well as [cpu] time for updates). Sounds promising I thought and installed it according to the website’s description.

Gfortran 11-experimental-2 for ARM Big Sur (macOS 11) fxcoudert released this on Dec 19, 2020 1 commit to master since this release This binary build of gfortran and GCC is an experimental version based on GCC 11, by Iain Sandoe, for Apple Silicon machines. This is an updated version of my previous experimental release. Instead of trying to install gfortran you should try gcc instead. Gcc install comes with gfortran. This is available from homebrew or MacPorts. Another method is to install pre-compiled binaries from here. Select the version based on your Mac OS version and you get an apple style loader.

Brew Gfortran
  1. Gfortran comes with. Brew install gcc Generally the latest compilers are available from Homebrew for Linux and MacOS. Homebrew environment variables.
  2. We need gfortran to compile SciPy, but it does not come pre-installed with Xcode. Therefore, Homebrew can help us out again: brew cask install gfortran.
GfortranBrew gfortran インストール

One of the first things I wanted to install was “The R Project for Statistical Computing”. Anyhow, since home brew requires people to think a bit, it was not as straight forward as some MacPorts rules.For R, we need to have a fortran compiler installed. I did this using the following command:

Brew would complain otherwise that no fortran compiler is installed and R installation would fail. After that, everything is ready already and we can proceed using:

NB! You need to run this command first if you are on a recent OS X:

That’s it - no rocket science but nice to know in advance…
Cheers,
iss

View the discussion thread.

Mac Brew Gfortran

GfortranBrew Gfortran

Osx Brew Gfortran

After some years as a MacPorts user I decided to give home brew a try, which are advertising their package manager with the sentence “Homebrew — MacPorts driving you to drink? Try Homebrew!”. The idea is not to build everything from scratch and create another software micro cosmos but to reuse existing Mac OS X abilities and save some space (as well as [cpu] time for updates). Sounds promising I thought and installed it according to the website’s description.

One of the first things I wanted to install was “The R Project for Statistical Computing”. Anyhow, since home brew requires people to think a bit, it was not as straight forward as some MacPorts rules.For R, we need to have a fortran compiler installed. I did this using the following command:

Brew would complain otherwise that no fortran compiler is installed and R installation would fail. After that, everything is ready already and we can proceed using:

NB! You need to run this command first if you are on a recent OS X:

That’s it - no rocket science but nice to know in advance…
Cheers,
iss

View the discussion thread.