gcc升级问题解决
编译gcc会出现各种依赖问题,所以使用红帽提供的开发工具包Developer Toolset来管理gcc版本
可通过centos-release-scl源安装devtoolset包
yum install centos-release-scl
yum install devtoolset-8
激活gcc版本,使其生效
scl enable devtoolset-7 bash
或
source /opt/rh/devtoolset-7/enable
报错:
没有可用软件包 devtoolset-7-gcc。
没有可用软件包 devtoolset-7-gc
原因如下
CentOS的几个常用的软件仓储repos
1、CentOS内置的软件仓储
2、EPEL (Extra Packages for Enterprise Linux)
3、SCL (Software Collection)
4、ELRepo (hardware related packages)
scl提供gcc版本工具,由于linux服务器不能联网,需要修改scl里镜像源为阿里云