缺少动态连接库.so--cannot open shared object file: No such file or directory

总结下来主要有3种方法:
1. 用ln将须要的so文件链接到/usr/lib或者/lib这两个默认的文件夹下边
ln -/where/you/install/lib/*.so /usr/lib
sudo ldconfig


2.改动LD_LIBRARY_PATH

export LD_LIBRARY_PATH=/where/you/install/lib:$LD_LIBRARY_PATH
sudo ldconfig


3.改动/etc/ld.so.conf,然后刷新


vim /etc/ld.so.conf

add /where/you/install/lib

sudo ldconfig
posted @ 2014-07-06 18:34  mengfanrong  阅读(205)  评论(0编辑  收藏  举报