CentOS系统rpm安装gcc

首先到http://vault.centos.org/6.3/os/x86_64/Packages/下载用到的rpm包,包括ppl-0.10.2-11.el6.x86_64.rpmcloog-ppl-0.15.7-1.2.el6.x86_64.rpmmpfr-2.4.1-6.el6.x86_64.rpm 、cpp-4.4.6-4.el6.x86_64.rpm 、kernel-headers-2.6.32-279.el6.x86_64.rpm、glibc-headers-2.12-1.80.el6.x86_64.rpm 、glibc-devel-2.12-1.80.el6.x86_64.rpm 、libstdc++-devel-4.4.6-4.el6.x86_64.rpm 、gcc-4.4.6-4.el6.x86_64.rpm 、gcc-c++-4.4.6-4.el6.x86_64.rpm


安装流程如下所示:

二,安装
将下载好的包传到Linux中后,使用命令进行安装

    
    
  • 1
  • 1
rpm -Uvh *.-nodeps force

运行这条命令后,会根据依赖按照顺序安装rpm

或者可以一步步安装:

[root@localhostgcc_rpm]#rpm-ivhppl-0.10.2-11.el6.x86_64.rpm

warning:ppl-0.10.2-11.el6.x86_64.rpm:HeaderV3RSA/SHA256Signature,keyIDc105b9de:NOKEY

Preparing...###########################################[100%]

1:ppl###########################################[100%]

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

warning:cloog-ppl-0.15.7-1.2.el6.x86_64.rpm:HeaderV3RSA/SHA256Signature,51); font-family:Arial; font-size:14px; line-height:26px"> 1:cloog-ppl###########################################[100%]

mpfr-2.4.1-6.el6.x86_64.rpm

warning:mpfr-2.4.1-6.el6.x86_64.rpm:HeaderV3RSA/SHA256Signature,51); font-family:Arial; font-size:14px; line-height:26px"> 1:mpfr###########################################[100%]

cpp-4.4.6-4.el6.x86_64.rpm

warning:cpp-4.4.6-4.el6.x86_64.rpm:HeaderV3RSA/SHA1Signature,51); font-family:Arial; font-size:14px; line-height:26px"> 1:cpp###########################################[100%]

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

warning:kernel-headers-2.6.32-279.el6.x86_64.rpm:HeaderV3RSA/SHA1Signature,51); font-family:Arial; font-size:14px; line-height:26px"> 1:kernel-headers###########################################[100%]

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

warning:glibc-headers-2.12-1.80.el6.x86_64.rpm:HeaderV3RSA/SHA1Signature,51); font-family:Arial; font-size:14px; line-height:26px"> 1:glibc-headers###########################################[100%]

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

warning:glibc-devel-2.12-1.80.el6.x86_64.rpm:HeaderV3RSA/SHA1Signature,51); font-family:Arial; font-size:14px; line-height:26px"> 1:glibc-devel###########################################[100%]

gcc-4.4.6-4.el6.x86_64.rpm

warning:gcc-4.4.6-4.el6.x86_64.rpm:HeaderV3RSA/SHA1Signature,51); font-family:Arial; font-size:14px; line-height:26px"> 1:gcc###########################################[100%]

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

warning:libstdc++-devel-4.4.6-4.el6.x86_64.rpm:HeaderV3RSA/SHA1Signature,51); font-family:Arial; font-size:14px; line-height:26px"> 1:libstdc++-devel###########################################[100%]

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

warning:gcc-c++-4.4.6-4.el6.x86_64.rpm:HeaderV3RSA/SHA1Signature,51); font-family:Arial; font-size:14px; line-height:26px"> 1:gcc-c++###########################################[100%]

三,完成

用命令验证 执行gcc -v

相关文章

有时候CentOS工作在无互联网的环境下,需要在离线环境下安装一些组件,这次实现的是模拟在离线环境下安...
首先参照https://www.cnblogs.com/wdw984/p/13330074.html,来进行如何安装Centos和离线下载rpm包。 离...
有两个.NET CORE3.1网站部署在CentOS7上(内网IP是192.168.2.32),现在想实现访问http://192.168.2.32...
1、yum -y install vsftpd 安装vsftpd 2、配置vsftpd的配置文件(/etc/vsftpd/vsftpd.conf)主要修改以...
首先去mysql官网下载mysql的离线rpm安装包(https://downloads.mysql.com/archives/community/) Mysql...
第一步下载erlang环境并安装: wget https://packages.erlang-solutions.com/erlang/rpm/centos/7/x86_...