CentOS 6下安装OMSA出现的依赖性问题
环境是CentOS 6.3,在安装DELL的OpenMange Server Administrator时,出现如下报错:
error: Failed dependencies:
libcmpiCppImpl.so.0()(64bit) is needed by srvadmin-itunnelprovider-7.2.0-4.468.1.el6.x86_64
于是用yum安装所缺少的rpm包,但提示已安装:
[root@cl109 ~]# yum install -y libcmpiCppImpl.so.0
Loaded plugins: downloadonly, fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* epel: mirrors.ustc.edu.cn
* extras: mirrors.163.com
* updates: mirrors.163.com
Setting up Install Process
Package libcmpiCppImpl0-2.0.1-5.el6.i686 already installed and latest version
Nothing to do
用rpm -qa查看,也确实有安装:
[root@cl109 ~]# rpm -qa|grep libcmpiCppImpl
libcmpiCppImpl0-2.0.1-5.el6.i686
就连错误提示中的文件libcmpiCppImpl.so.0,也是存在的:
[root@cl109 ~]# rpm -ql libcmpiCppImpl0
/usr/lib/libcmpiCppImpl.so
/usr/lib/libcmpiCppImpl.so.0
/usr/lib/libcmpiCppImpl.so.0.0.0
root@cl109 ~]# ll /usr/lib/libcmpiCppImpl.so.0
lrwxrwxrwx 1 root root 23 Jun 21 09:36 /usr/lib/libcmpiCppImpl.so.0 -> libcmpiCppImpl.so.0.0.0
这是咋回事?后来一想,会不会是因为他需要的是64位的libcmpiCppImpl.so.0,而系统中已安装版本是32位的?而且查看系统中libcmpiCppImpl.so.0的存放路径是/usr/lib,而不是/usr/lib64/,更加坚定了这个判断。
于是用yum search libcmpiCppImpl,看是否存在64位的版本:
[root@cl109 ~]# yum search libcmpiCppImpl
Loaded plugins: downloadonly, fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* epel: mirrors.ustc.edu.cn
* extras: mirrors.163.com
* updates: mirrors.163.com
epel/pkgtags | 304 kB 00:00
========================================================================== N/S Matched: libcmpiCppImpl ==========================================================================
libcmpiCppImpl0.i686 : CMPI C++ wrapper library
libcmpiCppImpl0.x86_64 : CMPI C++ wrapper library
结果证明,确实是有64位版本的libcmpiCppImpl0:libcmpiCppImpl0.x86_64。于是用yum安装,然后重试。问题解决。