problem:
/sbin/ldconfig: /usr/local/lib/libxml2.so.5 is not a symbolc link
Resolve:
ldconfig uses the .so ending(with no trailing version numbers) to link to one of multiple libraries. This error is saying that the directory contains multiple versions of this library. However, ldconfig can not create a symbolic link with the appropriate name to one of them because a regular file exists with the name that it would use.
You need either to trim the directory down so it only contains one version of each library or make sure all of the versions have a trailing version number after the .so(eg.. so.0.1)
这是从Redhat 的客服或者技术支持摘下来的。其实并不完全正确。
我试过。在/usr/local/lib下,存在如下库:
libACE_HTBP.so
libACE_HTBP.so.6
libACE_HTBP.so.5.4.7
运行/sbin/ldconfig后,并不会出错。因为,运行ldconfig后,三个库文件的符号链接分别为:
libACE_HTBP.so
libACE_HTBP.so.6
libACE_HTBP.so.5
并不是像上面英文提到的,符号链接会把所有后缀去掉。
所以,只要保证so.*. 中,"*"所代表的数字不同就可以了。
P.S 有可能是上面的英文描述,针对的是比较老的redhat版本