Linuxbrew is a fork of Mac homebrew, allowing install of the latest compilers and other packages without sudo.
- Use the Linuxbrew install script, which installs Ruby and Linuxbrew
- Press Ctrl-D when asked for the password to install to
- install desired packages. Gfortran comes with
brew install gcc
Generally the latest compilers are available from Linuxbrew, as will homebrew for Mac.