系统相关
首页 > 系统相关> > Centos7升级gcc9

Centos7升级gcc9

作者:互联网

Centos7默认gcc版本:

[root@VM-0-12-centos /]# gcc -v
gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) 

Centos7升级到gcc9:

yum install centos-release-scl
yum install devtoolset-9-gcc*
scl enable devtoolset-9 bash

查看gcc版本:

[root@VM-0-12-centos bin]# gcc -v
gcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC) 

标签:升级,gcc,centos,scl,Centos7,Red,Hat,gcc9
来源: https://www.cnblogs.com/sivanchan/p/13664495.html