码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-05-27 19:22:45      阅读:174      评论:0      收藏:0      [点我收藏+]

标签:shared   file   where   动态   

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

总结下来主要有3种方法:
1. 用ln将需要的so文件链接到/usr/lib或者/lib这两个默认的目录下边

ln -s /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


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

标签:shared   file   where   动态   

原文地址:http://yaomy.blog.51cto.com/8892139/1655716

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!