Centos 7 gcc 8 installation

centosgccyum

GCC 8 is out for a white and I would like to test on CentOS 7, but no devtoolset-8 yet in yum.

I found https://cbs.centos.org/koji/packageinfo?packageID=7198 but this is cbs; Can I have it as a nirmal yum repository?

Best Answer

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.

Related Question