cannot open shared object file: No such file or directory 解决方法
来源:互联网 发布:python 加一列 编辑:程序博客网 时间:2024/06/02 06:18
总结下来主要有3种方法:
1. 用ln将需要的so文件链接到/usr/lib或者/lib这两个默认的目录下边
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
不过,很多大牛并不建议通过修改LD_LIBRARY_PATH这种方式
- LD_LIBRARY_PATH is not the answerhttp://prefetch.net/articles/linkers.badldlibrary.html
- Why LD_LIBRARY_PATH is bad http://xahlee.org/UnixResource_dir/_/ldpath.html
- LD_LIBRARY_PATH - just say no http://blogs.sun.com/rie/date/20040710
0 0
- cannot open shared object file: No such file or directory
- cannot open shared object file: No such file or directory
- cannot open shared object file: No such file or directory
- cannot open shared object file: No such file or directory
- cannot open shared object file: No such file or directory
- cannot open shared object file: No such file or directory
- cannot open shared object file: No such file or directory的尝试解决方法和原理
- cannot open shared object file: No such file or directory 解决方法
- shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
- RAC srvctl 命令报 libpthread.so.0 cannot open shared object file No such file or directory 解决方法
- RAC srvctl 命令报 libpthread.so.0 cannot open shared object file No such file or directory 解决方法
- RAC srvctl 命令报 libpthread.so.0 cannot open shared object file No such file or directory 解决方法
- 查找共享库路径是失败,“cannot open shared object file: No such file or directory”解决方法
- libmysqlclient.so.15: cannot open shared object file: No such file or directory
- samba libtalloc.so.1 : cannot open shared object file: no such file or directory
- ImportError: libghmm.so.1: cannot open shared object file: No such file or directory 解决方案
- 装SNORT碰到cannot open shared object file: No such file or directory
- libmysqlclient.so.15: cannot open shared object file: No such file or directory
- Uva 11300 Spreading the Wealth(数学,中位数)
- myeclipse导入googe code上的代码,svn用goagent代理
- Merge Sorted Array
- 设置Theme.NoTitleBar后Activity背景变成黑色
- 简单的递归
- cannot open shared object file: No such file or directory 解决方法
- java读取properties属性文件
- 内存泄露检测工具比较
- 单点登录(SSO)—简介
- hdu 2476 String painter dp
- Ajax学习笔记
- Android 使用Scroller实现绚丽的ListView左右滑动删除Item效果
- hadoop2.4配置与wordcount例子
- 网站跳出率如何快速有效的降低