使用devtools升级安装的时候,由于此库已经停止更新 了,因此需要切换阿里源
SCL+Devtoolset 安装与使用笔记-腾讯云开发者社区-腾讯云 (tencent.com)https://cloud.tencent.com/developer/article/1889181
1 yum 安装
yum install centos-release-scl centos-release-scl-rh
2 换源CentOS-SCLo-scl-rh
打开 CentOS-SCLo-scl-rh.repo
# CentOS-SCLo-rh.repo
#
# Please see http://wiki.centos.org/SpecialInterestGroup/SCLo for more
# information
[centos-sclo-rh]
name=CentOS-7 - SCLo rh
#baseurl=http://mirror.centos.org/