1、例如
error while loading shared libraries: xxx: cannot open shared object file: No such file or directory
方法一:
1、將程序中的lib庫copy到 /lib或者 /usr/local/lib目錄下
2、執行ldconfig
ldconfig命令的用途, 主要是在默認搜尋目錄(/lib和/usr/lib)以及動態庫配置文件/etc/ld.so.conf內所列的目錄下
方法二:
# vim /etc/ld.so.conf //在新的一行中加入庫文件所在目錄
/xx//xxxxx
# ldconfig //更新/etc/ld.so.cache文件