离线环境需要rpm安装GCC,记录下安装过程
1、下载gcc相关的安装文件
下载地址:http://vault.centos.org/7.0.1406/os/x86_64/Packages/
所需文件:
cpp4.8.216.el7.x86_64.rpm gcc4.8.216.el7.x86_64.rpm glibc2.1755.el7.x86_64.rpm glibccommon2.1755.el7.x86_64.rpm glibcdevel2.1755.el7.x86_64.rpm glibcheaders2.1755.el7.x86_64.rpm glibcstatic2.1755.el7.x86_64.rpm glibcutils2.1755.el7.x86_64.rpm kernelheaders3.10.0123.el7.x86_64.rpm libmpc1.0.13.el7.x86_64.rpm mpfr3.1.14.el7.x86_64.rpm
2、所有rpm包上传至服务器同一目录下
3、安装
rpm -Uvh *.rpm --nodeps --force
--nodeps rpm在安装包时,不检查依赖关系
--force 强制安装
4、验证安装
gcc -v