Linux环境下安装Oracle11gR2提示缺少“Package: elfutils-libelf-devel-0.125    FAILED”包,按照提示安装该包时又提示缺少依赖包“elfutils-libelf-devel-static-x86_64”,而安装依赖包时又提示缺少原有的包,形成了相互依赖的关系。

[root@dhcc_plat rpms]# rpm -ivh elfutils-libelf-devel-0.137-3.el5.x86_64.rpm
warning: elfutils-libelf-devel-0.137-3.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
elfutils-libelf-devel-static-x86_64 = 0.137-3.el5 is needed by elfutils-libelf-devel-0.137-3.el5.x86_64
[root@dhcc_plat rpms]#
[root@dhcc_plat rpms]# rpm -ivh elfutils-libelf-devel-static-0.137-3.el5.x86_64.rpm
warning: elfutils-libelf-devel-static-0.137-3.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
elfutils-libelf-devel-x86_64 = 0.137-3.el5 is needed by elfutils-libelf-devel-static-0.137-3.el5.x86_64
[root@dhcc_plat rpms]#

解决办法很简单,一起安装他们就可以了,包之间使用空格分开。

[root@dhcc_plat rpms]# rpm -ivh elfutils-libelf-devel-0.137-3.el5.x86_64.rpm elfutils-libelf-devel-static-0.137-3.el5.x86_64.rpm
warning: elfutils-libelf-devel-0.137-3.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:elfutils-libelf-devel-s########################################### [ 50%]
2:elfutils-libelf-devel ########################################### [100%]
[root@dhcc_plat rpms]#
05-11 15:39