Chinaunix首页 | 论坛 | 博客
  • 博客访问: 189533
  • 博文数量: 77
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 45
  • 用 户 组: 普通用户
  • 注册时间: 2016-08-25 10:50
文章分类

全部博文(77)

文章存档

2018年(1)

2017年(3)

2016年(4)

2015年(4)

2014年(16)

2013年(7)

2012年(20)

2011年(22)

分类: LINUX

2014-04-04 15:14:46

今天玩一个需要编译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

 

安装顺序即记录:

[root@Shenkxiao 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@Shenkxiao 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@Shenkxiao 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@Shenkxiao 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@Shenkxiao 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@Shenkxiao 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@Shenkxiao 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@Shenkxiao 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@Shenkxiao 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@Shenkxiao 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@Shenkxiao 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%]

 

阅读(486) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~