`
xiaolong0211
  • 浏览: 325564 次
  • 性别: Icon_minigender_1
  • 来自: 青岛
社区版块
存档分类
最新评论

RedHat Enterprise Linux 5 下使用rpm安装gcc

阅读更多

这两天一直在安装oracle10g,但必须先安装gcc。

 

 

貌似即便都是RedHat Enterprise Linux 5,由于版本不同,需要的rpm文件也不相同,不知道是不是这样 ,当装完那些高版本的rpm包时,却提示缺少低版本的那个,而且用

rpm -e命令删不净,而且刚开始没经验,虚拟机没有备份,无奈,每次都得重装,浪费大量时间,现在自己最大的教训是,做任何操作前一定要保证能够还原,我的解决办法就是为虚拟机备份,很笨,I know。

 

先记录下我的Linux的具体版本:

 

[root@localhost ~]# lsb_release -a
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 5.3 (Tikanga)
Release:        5.3
Codename:       Tikanga

 

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-128.el5 #1 SMP Wed Dec 17 11:42:39 EST 2008 i686 i686 i386 GNU/Linux

 

 

[root@localhost /]# cat /proc/version
Linux version 2.6.18-128.el5 (
mockbuild@hs20-bc1-5.build.redhat.com ) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)) #1 SMP Wed Dec 17 11:42:39 EST 2008

ps:这是装完gcc后的显示

 

[root@localhost /]# cat /etc/issue
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
Kernel \r on an \m

 

 

查看本机是否已经安装gcc:rpm -q gcc

 

安装之前返回结果是:

[root@localhost gcc]# rpm -q gcc
package gcc is not installed

 

 

安装之后返回结果是:

[root@localhost /]# rpm -q gcc
gcc-4.1.2-44.el5

 

 

OK,最重要的,安装顺序,以及各rpm版本:

 

1.kernel-headers-2.6.18-128.el5.i386.rpm

2.glibc-headers-2.5-34.i386.rpm

3.glibc-devel-2.5-34.i386.rpm

4.cpp-4.1.2-44.el5.i386.rpm

5.libgomp-4.3.2-7.el5.i386.rpm

6.libstdc++-devel-4.1.2-44.el5.i386.rpm

7.gcc-4.1.2-44.el5.i386.rpm

8.libgcc-4.1.2-44.el5.i386.rpm

9.gcc-c++-4.1.2-44.el5.i386.rpm

 

本来想传上来的,╮(╯▽╰)╭,文件太大了,OK,传上来了。

 

参考文章: http://julyboxer.iteye.com/blog/643547

 

我的RedHat查看rpm包时rpm -q gcc make binutils openmotif setarch libXp

还缺少openmotif和libXp

 

其中,openmotif安装依赖于libXp,所以先安装libXp

libXp-1.0.0-8.i386.rpm

再安装openmotif

openmotif-2.3.1-2.el5.i386.rpm

 

再运行rpm -q gcc make binutils openmotif setarch libXp,

[root@localhost oracle]#  rpm -q gcc make binutils openmotif setarch libXp
gcc-4.1.2-44.el5
make-3.81-3.el5
binutils-2.17.50.0.6-9.el5
openmotif-2.3.1-2.el5
setarch-2.0-1.1
libXp-1.0.0-8

 

OK,大功告成

 

20121008

有朋友安装时遇到依赖性问题,我把那个文件放上了,不知道管不管用。。。

分享到:
评论
10 楼 xiaolong0211 2014-05-10  
zhaoling129 写道
xiaolong0211 写道
zhaopeihehe 写道
error: Failed dependencies:
glibc = 2.5-34 is needed by glibc-headers-2.5-34.i386
请楼主把这个包给发一下,709778409@qq.com太感激了

我传上去了,你试试吧。。。


请问楼主xiaolong0211,我安装时也出现同样的问题,请问这个依赖包的全名是什么,你上传到哪里了?

glibc-devel-2.5-34.i386.rar
应该是这个,时间有点长了
9 楼 zhaoling129 2014-04-29  
xiaolong0211 写道
zhaopeihehe 写道
error: Failed dependencies:
glibc = 2.5-34 is needed by glibc-headers-2.5-34.i386
请楼主把这个包给发一下,709778409@qq.com太感激了

我传上去了,你试试吧。。。


请问楼主xiaolong0211,我安装时也出现同样的问题,请问这个依赖包的全名是什么,你上传到哪里了?
8 楼 xiaolong0211 2013-04-18  
woaimingde 写道
必须顶。不过要是还没有装上,要请楼主不吝指教哈。我是在安装tcl 是遇到这种情况的。
[root@localhost root]# rpm -q gcc make binutils openmotif
package gcc is not installed
make-3.79.1-17
binutils-2.13.90.0.18-9
openmotif-2.2.2-14

[root@localhost tar-zip]# rpm -ivh tcl-devel-8.4.13-4.el5.i386.rpm
warning: tcl-devel-8.4.13-4.el5.i386.rpm: V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
        libtcl8.4.so is needed by tcl-devel-8.4.13-4.el5
        tcl = 8.4.13-4.el5 is needed by tcl-devel-8.4.13-4.el5

还想是gcc的问题,但是不知道哪里???

没办法,只能根据提示,缺哪个再安装哪个,最惨的,要是进入文件依赖循环,我就不知道了,good luck!
7 楼 woaimingde 2013-01-08  
必须顶。不过要是还没有装上,要请楼主不吝指教哈。我是在安装tcl 是遇到这种情况的。
[root@localhost root]# rpm -q gcc make binutils openmotif
package gcc is not installed
make-3.79.1-17
binutils-2.13.90.0.18-9
openmotif-2.2.2-14

[root@localhost tar-zip]# rpm -ivh tcl-devel-8.4.13-4.el5.i386.rpm
warning: tcl-devel-8.4.13-4.el5.i386.rpm: V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
        libtcl8.4.so is needed by tcl-devel-8.4.13-4.el5
        tcl = 8.4.13-4.el5 is needed by tcl-devel-8.4.13-4.el5

还想是gcc的问题,但是不知道哪里???
6 楼 youyouschool 2012-12-03  
找了好几天了都没找到这么完整的,非常谢谢!
5 楼 xiaolong0211 2012-10-08  
zhaopeihehe 写道
error: Failed dependencies:
glibc = 2.5-34 is needed by glibc-headers-2.5-34.i386
请楼主把这个包给发一下,709778409@qq.com太感激了

我传上去了,你试试吧。。。
4 楼 zhaopeihehe 2012-09-09  
error: Failed dependencies:
glibc = 2.5-34 is needed by glibc-headers-2.5-34.i386
请楼主把这个包给发一下,709778409@qq.com太感激了
3 楼 mystical 2012-07-04  
楼主简直是伟大!
2 楼 bageer 2012-05-03  
安装过程中提示:error: Failed dependencies:
glibc = 2.5-34 is needed by glibc-headers-2.5-34.i386
请楼主把这个包给发一下吧不胜感激723878662@qq.com
1 楼 leiyuan0115 2011-12-22  
学习下。。。。
成功的法则。

相关推荐

Global site tag (gtag.js) - Google Analytics