i386上安装GCC编译环境

今天玩一个需要编译C的例子的时候,在make编译的时候系统居然报错了,说我没有gcc,我的rhel-sever-6.0系统默认安装时并没有安装编译环境,我想直接yum -y install gcc,可是系统又告诉我“This system is not registered with RHN……”,先不管能不能yum了,我装了gcc再说,于是找我的rhel-server-6.0-i386的光盘,俺要用rpm装,小小的google了一下,知道怎么弄了,再调试调试,就OK了,下面是俺的安装方法:  

安装前准备:

从光盘中搜罗如下rpm包,将这些包上传至rhel服务器:

kernel-headers-2.6.32-71.el6.i686.rpm

glibc-headers-2.12-1.7.el6.i686.rpm 
glibc-devel-2.12-1.7.el6.i686.rpm

libgomp-4.4.4-13.el6.i686.rpm

mpfr-2.4.1-6.el6.i686.rpm

cpp-4.4.4-13.el6.i686.rpm(依赖mpfr-2.4.1-6.el6.i686.rpm包)

ppl-0.10.2-11.el6.i686.rpm

cloog-ppl-0.15.7-1.2.el6.i686.rpm(依赖ppl-0.10.2-11.el6.i686.rpm包)

gcc-4.4.4-13.el6.i686.rpm (依赖cpp-4.4.4-13.el6.i686.rpm包、cloog-ppl-0.15.7-1.2.el6.i686.rpm包)

libstdc++-devel-4.4.4-13.el6.i686.rpm

gcc-c++-4.4.4-13.el6.i686.rpm

图方便,可从下面链接直接下载

下载在Linux公社的1号FTP服务器里,下载地址:

FTP地址:ftp://www.linuxidc.com

用户名:

密码:

在 2011年LinuxIDC.com\12月\rhel-server-6.0-i386上安装GCC编译环境

下载方法见

安装顺序即记录:

[root@ gccrpm]# rpm -ivh kernel-headers-2.6.32-71.el6.i686.rpm
warning: kernel-headers-2.6.32-71.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                                            ########################################### [100%]
   1:kernel-headers                                     ########################################### [100%]
[root@ gccrpm]# rpm -ivh glibc-headers-2.12-1.7.el6.i686.rpm  --force --nodeps
warning: glibc-headers-2.12-1.7.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                                                         ########################################### [100%]
   1:glibc-headers                                                   ########################################### [100%]


[root@ gccrpm]# rpm -ivh glibc-devel-2.12-1.7.el6.i686.rpm --force --nodeps
warning: glibc-devel-2.12-1.7.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                                                         ########################################### [100%]
   1:glibc-devel                                                     ########################################### [100%]

[root@ gccrpm]# rpm -ivh libgomp-4.4.4-13.el6.i686.rpm
warning: libgomp-4.4.4-13.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                                                         ########################################### [100%]
        package libgomp-4.4.4-13.el6.i686 is already installed
       
[root@ gccrpm]# rpm -ivh mpfr-2.4.1-6.el6.i686.rpm
warning: mpfr-2.4.1-6.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:mpfr                   ########################################### [100%]

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/23042.html