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
.
![Michael Chourdakis](https://i.stack.imgur.com/7Sdao.jpg?s=256&g=1)
Author by
Michael Chourdakis
Updated on September 18, 2022Comments
-
Michael Chourdakis almost 2 years
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?
-
Nasir Riley over 5 yearsRather than adding it as a
yum
repo, I usedwget
to download all of therpm
s from here: cbs.centos.org/repos/sclo7-devtoolset-8-rh-candidate/x86_64/os/… into a directory and then I ranyum install *.rpm
. I then ranscl enable devtoolset-8 bash
to change toGCC 8
.
-