Centos 7 gcc 8 installation

14,842

Now devtools-8 is available and it's possible to use it by following commands:

yum install centos-release-scl
yum install devtoolset-8-gcc devtoolset-8-gcc-c++
scl enable devtoolset-8 -- bash

It's explained in a little more detail in this answer on StackOverflow: How to install GCC/G++ 8 on CentOS. And of course, if you need GFortran, you can install it in the same way - the package is devtoolset-8-gcc-gfortran.

Share:
14,842
Michael Chourdakis
Author by

Michael Chourdakis

Updated on September 18, 2022

Comments