Install newest gcc on CentOS 7

Enable repository and install newest gcc with following commands.

yum install centos-release-scl
yum install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils

Activate it and check version.

scl enable devtoolset-9 bash
gcc --version

For make activation permanent add “scl enable devtoolset-9 bash” to end of the the /etc/profile file.

Ok.That’s it!

 

This entry was posted in Linux and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *