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