error while loading shared libraries
来源:互联网 发布:无锡消费数据 编辑:程序博客网 时间:2024/04/29 17:24
在linux下,发现了error while loading shared libraries: libmpc.so.3: cannot open shared object file: No such file or directory这种错误,原因主要是两种:一种是系统没有需要的文件libmpc.so.3,第二种是,文件已经有了,但是在默认的目录下系统没有找到。这里解决的是第二种情况。
./tests: error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory
出现这类错误表示,系统不知道xxx.so放在哪个目录下,这时候就要在/etc/ld.so.conf中加入xxx.so所在的目录。
1、先找到:
root@DKeeper:/# find -name libmpc.so.3
./home/dkeeper/tools/mpc-1.0/lib/libmpc.so.3
./home/dkeeper/sources/mpc-1.0/src/.libs/libmpc.so.3
2、配置:
root@DKeeper:/# cd /etc
root@DKeeper:/etc# vim ld.so.conf
在配置文件中加入上边找出的路径即可。
3、更新:
ldconfig -v
问题解决。
0 0
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- UI11_手势
- 欧拉函数
- Java学习笔记09 IO
- 技术人生:故事之四MS是微软
- http content-type
- error while loading shared libraries
- CSS 水平垂直居中 方法四
- codeforces 572D Minimization
- Manacher算法
- SVC和PEDSVC
- COGS2119. 分糖果
- 零钱组合的几种解法
- 安卓sqlite数据库的使用
- Android绘图:Canvas绘制联系人姓氏侧滑列表