Centos 轻松升级 GCC 不改变系统环境

yum install centos-release-scl-rh centos-release-scl

yum install devtoolset-6-gcc devtoolset-6-gcc-c++(devtoolset-3:GCC 4.9.2 devtoolset-4:GCC5.3 devtoolset-6:GCC6.2)

source /opt/rh/devtoolset-6/enable

 

 

 

 

参考文献:

https://blog.csdn.net/juweiping/article/details/55194109

https://blog.csdn.net/qq_14821541/article/details/52297859

posted @ 2018-08-06 19:34  jhc888007  阅读(143)  评论(0编辑  收藏  举报