升级gcc

来自ling
跳转至: 导航搜索

https://blog.csdn.net/xiangzaixiansheng/article/details/128483317

yum -y install centos-release-scl
yum -y install devtoolset-8-gcc devtoolset-8-gcc-c++ devtoolset-8-binutils
scl enable devtoolset-8 bash  #启动gcc8

echo "source /opt/rh/devtoolset-8/enable" >> /etc/bashrc
source /etc/bashrc