装SVN make install的时候,找不着libexpat.so.1文件
/home/cuilin/svn/subversion/svnversion/.libs/lt-svnversion: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory
make: *** [revision-install] 错误 127网上有千篇一律的解决方法:
意思是找不到libexpat.so.1这个文件
运行 whereis libexpat.so.1
libexpat.so: /lib/libexpat.so.0 /usr/local/lib/libexpat.so /usr/local/lib/libexpat.so.1
解决:vi /etc/ld.so.conf
加入libexpat.so.1的目录 /usr/local/lib/ 保存退出
运行 ldconfig
但是试过N遍了还是出现同样的错误。向高手们请教!~
ps: yum install compat-expat1 -> no package
svn源文件里要找的libexpat.so.1文件路径是哪里呢?
include ld.so.conf.d/*.conf
include /usr/local/lib/
这是我的ld.so.conf的内容,看哪里错了?
------解决方案--------------------
include /usr/local/lib/
改成
/usr/local/lib/