升级到gcc 9.3:

yum -y install centos-release-scl
yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils
scl enable devtoolset-9 bash

需要注意的是scl命令启用只是临时的,退出shell或重启就会恢复原系统gcc版本。
如果要长期使用gcc 9.3的话:

echo "source /opt/rh/devtoolset-9/enable" >>/etc/profile

相关文章:

  • 2022-02-08
  • 2022-02-15
  • 2021-11-18
  • 2021-11-18
  • 2021-11-18
  • 2021-12-01
  • 2022-02-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-10
  • 2021-12-21
  • 2022-02-28
  • 2022-03-02
  • 2021-09-22
相关资源
相似解决方案