问题:自己写的一个库文件(.so)在链接后提示:
error while loading shared libraries:libtst.so: cannot open shared object file: No such file or directory
解决办法:
(需要su)
# cat/etc/ld.so.conf
includeld.so.conf.d/*.conf
# echo "(你的so文件所在文件夹的路径)" >> /etc/ld.so.conf
# ldconfig
参考:http://blog.chinaunix.net/uid-26212859-id-3256667.html