Use modern compilers in Red Hat

Often we need a more modern compiler than is included in Red Hat for HPC systems. Once an admin sets up “devtoolset” they can be loaded by any user thereafter. A common devtoolset use is for gfortran:

yum install centos-release-scl

yum install devtoolset-8-gcc devtoolset-8-gcc-gfortran

Thereafter, users without sudo use the new gfortran version by:

scl enable devtoolset-8 bash