Upgrade gcc
yum install centos-release-scl yum install devtoolset-8 scl enable devtoolset-8 bash
Note: Command
scl enable devtoolset-8 bash
only activate the new gcc temporarily until the session is end.If you want to always use the new gcc, you could run command
echo "scl enable devtoolset-8 bash" >> ~/.bash_profile
, system will automatically activate the new gcc after restarting.