当我们拿到新的服务器,需要在服务器上安装各种编译环境,那我们最先需要安装的环境应该是 gcc 的编译环境了,在此基础上再去安装其它的应用,就不会出现问题了
此文章转载于:https://blog.csdn.net/realize_dream/article/details/106483499
1、安装 gcc 套装
yum install cpp
yum install binutils
yum install glibc
yum install glibc-kernheaders
yum install glibc-common
yum install glibc-devel
yum install gcc
yum install make
2、升级 gcc
yum -y install centos-release-scl
yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils
scl enable devtoolset-9 bash
如您在阅读中发现不足,欢迎留言!!!