赞
踩
服务器不能联网不能通过yum安装的情况,我们选择将所有相关的rpm包下载放到服务器上安装。
gcc rpm包清单
- cpp-4.8.5-36.el7.x86_64.rpm
- gcc-4.8.5-36.el7.x86_64.rpm
- glibc-devel-2.17-260.el7.x86_64.rpm
- glibc-headers-2.17-260.el7.x86_64.rpm
- kernel-headers-3.10.0-957.12.2.el7.x86_64.rpm
- libmpc-1.0.1-3.el7.x86_64.rpm
- mpfr-3.1.1-4.el7.x86_64.rpm
gcc-c++ rpm包清单:
- autogen-libopts-5.18-5.el7.x86_64.rpm
- gcc-c++-4.8.5-36.el7.x86_64.rpm
- glibc-2.17-260.el7.x86_64.rpm
- glibc-common-2.17-260.el7.x86_64.rpm
- keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm
- krb5-devel-1.15.1-34.el7.x86_64.rpm
- libcom_err-devel-1.42.9-13.el7.x86_64.rpm
- libgcc-4.8.5-36.el7.x86_64.rpm
- libgomp-4.8.5-36.el7.x86_64.rpm
- libselinux-devel-2.5-14.1.el7.x86_64.rpm
- libsepol-devel-2.5-10.el7.x86_64.rpm
- libstdc++-4.8.5-36.el7.x86_64.rpm
- libstdc++-devel-4.8.5-36.el7.x86_64.rpm
- libverto-devel-0.2.5-4.el7.x86_64.rpm
- nscd-2.17-260.el7.x86_64.rpm
- ntp-4.2.6p5-28.el7.centos.x86_64.rpm
- ntpdate-4.2.6p5-28.el7.centos.x86_64.rpm
- openssl-1.0.2k-16.el7.x86_64.rpm
- openssl-devel-1.0.2k-16.el7.x86_64.rpm
- openssl-libs-1.0.2k-16.el7.x86_64.rpm
- openssl098e-0.9.8e-29.el7.centos.3.x86_64.rpm
- pkgconfig-0.27.1-4.el7.x86_64.rpm
- tcl-8.5.13-8.el7.x86_64.rpm
- zlib-1.2.7-18.el7.x86_64.rpm
- zlib-devel-1.2.7-18.el7.x86_64.rpm
已帮你备好所有rpm文件
阿里云盘 「RPM」https://www.aliyundrive.com/s/s5GZrsAMj9t 点击链接保存,或者复制本段内容,打开「阿里云盘」APP ,无需下载极速在线查看,视频原画倍速播放。
下载完成后,将所有rpm文件放入机器中的任意目录下,进入目录,执行:
rpm -Uvh *.rpm --nodeps --force
验证:
- gcc -v;
-
- gcc-c++ -v 或者 g++ -v;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。