saptechnique

Better late than never. - 郭富

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Linux下,如何安装有互相依赖关系的RPM包

linux上安装oracle前需要安装几个RPM包,在安装时我发现有两个RPM是有依赖关系的,如下示例:

[root@bogon snmp]# rpm -ivh elfutils-devel-0.125-3.el5.i386.rpm

warning: elfutils-devel-0.125-3.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

error: Failed dependencies:

       elfutils-devel-static = 0.125-3.el5 is needed by elfutils-devel-0.125-3.el5.i386

       elfutils-libelf-devel = 0.125-3.el5 is needed by elfutils-devel-0.125-3.el5.i386

 

[root@bogon snmp]# rpm -ivh elfutils-devel-static-0.125-3.el5.i386.rpm

warning: elfutils-devel-static-0.125-3.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

error: Failed dependencies:

       elfutils-devel = 0.125-3.el5 is needed by elfutils-devel-static-0.125-3.el5.i386

       elfutils-libelf-devel-static = 0.125-3.el5 is needed by elfutils-devel-static-0.125-3.el5.i386[/code]

 

安装elfutils-devel-0.125-3.el5.i386.rpm 的时候提示需要elfutils-devel-static ,但是安装elfutils-devel-static-0.125-3.el5.i386.rpm 的时候又需要elfutils-devel,如何解决呢?

 

其实,这里有个小窍门,将这两个RPM包一同安装就可以了。

 

rpm -ivh elfutils-devel-0.125-3.el5.i386.rpm elfutils-devel-static-0.125-3.el5.i386.rpm

http://hi.baidu.com/maojc/blog/item/7dfa2da8df8161b6ca130c64.html

posted on 2012-02-17 16:28  guofu  阅读(9590)  评论(0编辑  收藏  举报