感谢支持
我们一直在努力

RHEL-Server-6.0-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


用户名:www.linuxidc.com


密码:www.muu.cc


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


下载方法见 http://www.linuxidc.net/thread-1187-1-1.html


安装顺序即记录:


[root@ www.linuxidc.com 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@ www.linuxidc.com 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@ www.linuxidc.com 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@ www.linuxidc.com 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@ www.linuxidc.com 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%]



[root@ www.linuxidc.com gccrpm]# rpm -ivh cpp-4.4.4-13.el6.i686.rpm
warning: cpp-4.4.4-13.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing…                ########################################### [100%]
   1:cpp                    ########################################### [100%]
   
[root@ www.linuxidc.com gccrpm]# rpm -ivh ppl-0.10.2-11.el6.i686.rpm
warning: ppl-0.10.2-11.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing…                ########################################### [100%]
   1:ppl                    ########################################### [100%]



[root@ www.linuxidc.com gccrpm]# rpm -ivh cloog-ppl-0.15.7-1.2.el6.i686.rpm
warning: cloog-ppl-0.15.7-1.2.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing…                ########################################### [100%]
   1:cloog-ppl              ########################################### [100%]


[root@ www.linuxidc.com gccrpm]# rpm -ivh gcc-4.4.4-13.el6.i686.rpm
warning: gcc-4.4.4-13.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing…                ########################################### [100%]
   1:gcc                    ########################################### [100%]



[root@ www.linuxidc.com gccrpm]# rpm -ivh libstdc++-devel-4.4.4-13.el6.i686.rpm
warning: libstdc++-devel-4.4.4-13.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing…                                                         ########################################### [100%]
   1:libstdc++-devel                                                 ########################################### [100%]



[root@ www.linuxidc.com gccrpm]# rpm -ivh gcc-c++-4.4.4-13.el6.i686.rpm
warning: gcc-c++-4.4.4-13.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing…                                                         ########################################### [100%]
   1:gcc-c++                                                         ########################################### [100%]

赞(0) 打赏
转载请注明出处:服务器评测 » RHEL-Server-6.0-i386上安装GCC编译环境
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏