1818IP-服务器技术教程,云服务器评测推荐,服务器系统排错处理,环境搭建,攻击防护等

当前位置:首页 - Linux系统 - redhat - 正文

君子好学,自强不息!

首先离线没网络、无YUM的情况下安装gcc需要用到rpm文件,一般文件都存放在redhat的光盘镜像内,rhel-server-6.4-x86_64-dvd\Packages文件夹下如下图:

image.png

安装gcc需要用到的rpm包有:

cloog-ppl-0.15.7-1.2.el6.x86_64.rpm

cpp-4.4.7-4.el6.x86_64.rpm

gcc-4.4.7-4.el6.x86_64.rpm

gcc-c++-4.4.7-4.el6.x86_64.rpm

glibc-devel-2.12-1.132.el6.x86_64.rpm

glibc-headers-2.12-1.132.el6.x86_64.rpm

kernel-headers-2.6.32-431.el6.x86_64.rpm

libstdc++-devel-4.4.7-4.el6.x86_64.rpm

mpfr-2.4.1-6.el6.x86_64.rpm

ppl-0.10.2-11.el6.x86_64.rpm

安装流程如下所示:按顺序安装,否则会提示有依赖未安装

rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm

rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm

rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm

rpm -ivh cpp-4.4.7-4.el6.x86_64.rpm --force

rpm -ivh kernel-headers-2.6.32-431.el6.x86_64.rpm

rpm -ivh glibc-headers-2.12-1.132.el6.x86_64.rpm --force

rpm -ivh glibc-devel-2.12-1.132.el6.x86_64.rpm --force

rpm -ivh gcc-4.4.7-4.el6.x86_64.rpm --force

rpm -ivh libstdc++-devel-4.4.7-4.el6.x86_64.rpm

rpm -ivh gcc-c++-4.4.7-4.el6.x86_64.rpm



本文来源:1818IP

本文地址:https://www.1818ip.com/post/2497.html

免责声明:本文由用户上传,如有侵权请联系删除!

发表评论

必填

选填

选填

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。