Install gcc8 and gfortran8 in CentOS 7
Oct 28, 2020 | 889 views
Refer to
- How to install GCC/G++ 8 on CentOS
- Centos 7 gcc 8 installation
- install gfortran8 in centos 7
- Why need gfortran8: Wrongly rejects element of assumed-shape array in C_LOC
yum install centos-release-scl
yum install devtoolset-8-gcc devtoolset-8-gcc-c++
yum install devtoolset-8-gcc-gfortran.x86_64
# To switch to a shell which defaults gcc and g++ to this GCC version, use:
scl enable devtoolset-8 -- bash
# OR
source /opt/rh/devtoolset-8/enable