#INSTALL GFORTRAN WITH LINUXBREW LINUX INSTALL#
Test your installation: brew install hello bashrc, and source it: export PATH="$HOME/.linuxbrew/bin:$PATH"Įxport MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"Įxport INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH" Install Linuxbrew: ruby -e "$(curl -fsSL )"Īdd these to your. Ln -s $(which gfortran) `brew -prefix`/bin/gfortran-$(gfortran -dumpversion |cut -d.
bashrc, which creates a new shell, etc.) source /opt/rh/devtoolset-2/enableĮnable the SCL environment: scl enable devtoolset-2 bashĬreate symlinks to your new gcc/g++/gfortran: ln -s $(which gcc) `brew -prefix`/bin/gcc-$(gcc -dumpversion |cut -d. bashrc, it creates a new shell, which loads your. This spawns a new bash shell, and if that's in your. bashrc (warning: don't try to use the scl enable devtoolset-2 bash command from before in your.
Optional: Permanently enable scl toolchain by putting this in your. Save repository information as /etc//slc6-devtoolset.repo on your system: wget -O /etc//slc6-devtoolset.repo Įnable the environment: scl enable devtoolset-2 bash : Shaun Jackman - the hero who maintains Linuxbrew.įirst, verify which version of CentOS you're using: $ cat /etc/centos-release.: Instructions for a standalone installation of Homebrew.: CERN's developer toolset installation instructions.: Forum response on using CERN's open Scientific Linux distribution of RHEL's developer toolset.
Also, when trying to install Linuxbrew you run into a dependency loop where Homebrew's gcc depends on zlib, which depends on gcc. The GCC distributed with CentOS 6 is 4.4.7, which is pretty outdated. Installing gcc 4.8 and Linuxbrew on CentOS 6