gcc版本过低,用gcc -v看到gcc版本为4.8.5 scl源 yum -y install centos-release-scl 如果报错先试试下面得命令 缺乏epel yum install epel-release 修改插件的配置文件 vim /etc/yum/pluginconf.d/fastestmirror.conf 修改yum的配置文件 vim /etc/yum.conf 更新scl yum -y install devtoolset-9