/sbin/ldconfig: * is not a symbolic link 解决方法


在安装DELL OMSA程序时,需要安装openwsman,但在安装的时候报错如下:


[root@wasu x86_64]# rpm -ivh openwsman-server-2.2.3.9-1739.8348.el6.x86_64.rpm 

warning: openwsman-server-2.2.3.9-1739.8348.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 23b66a9d: NOKEY

Preparing...                ########################################### [100%]

   1:openwsman-server       ########################################### [100%]

/sbin/ldconfig: /lib64/libexpat.so.0 is not a symbolic link

提示: /sbin/ldconfig: /lib64/libexpat.so.0 is not a symbolic link


报这个错,是因为libexpat.so.0正常情况下应该是一个符号链接,而不是实体文集件,修改其为符号链接即可

[root@wasu x86_64]# find / -name libexpat.so.0

/lib/libexpat.so.0

/lib64/libexpat.so.0

[root@wasu x86_64]# ll /lib64/libexpat.so.0

-rwxr-xr-x 1 root root 140784 Oct 21  2011 /lib64/libexpat.so.0

[root@wasu x86_64]# ll /lib/libexpat.so.0

lrwxrwxrwx 1 root root 17 Mar 18 23:08 /lib/libexpat.so.0 -> libexpat.so.0.5.0

[root@wasu x86_64]#

所以,到/lib64目录下,删除源文件,然后再创建一个链接文件即可解决问题

[root@wasu lib64]# rm -rf libexpat.so.0

[root@wasu lib64]# ln -s libexpat.so.0.5.0 libexpat.so.0

[root@wasu lib64]# ll libexpat.so.*

lrwxrwxrwx 1 root root     17 Mar 21 14:42 libexpat.so.0 -> libexpat.so.0.5.0

-rwxr-xr-x 1 root root 140784 Oct 21  2011 libexpat.so.0.5.0

-rwxr-xr-x 1 root root 166936 Feb  9  2010 libexpat.so.1.5.2

[root@wasu lib64]# ldconfig


你可能感兴趣的:(*,link,a,is,not,symbolic,/sbin/ldconfig:)