cannot open shared object file: No such file or directory 的问题解决
来源:互联网 发布:java仿京东商城源码 编辑:程序博客网 时间:2024/06/03 09:26
出现类似找不到库文件的错误
./move_db: error while loading shared libraries: libmysqlclient.so.15: cannot
open shared object file: No such file or directory
第一步:确认有哪些Lib无法Load
>ldd move_db
linux-gate.so.1 => (0x0089c000)
libmysqlclient.so.15 => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00cfa000)
libm.so.6 => /lib/libm.so.6 (0x00804000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x009f8000)
libc.so.6 => /lib/libc.so.6 (0x0069e000)
/lib/ld-linux.so.2 (0x0067b000)
在该文件中填上该动态库的绝对路径
例如:
vim /etc/ld.so.conf.d/ld.mysql.so.conf
/usr/local/mysql/lib
第三步:运行ldconfig重建/etc/ld.so.cache
./move_db: error while loading shared libraries: libmysqlclient.so.15: cannot
open shared object file: No such file or directory
第一步:确认有哪些Lib无法Load
>ldd move_db
linux-gate.so.1 => (0x0089c000)
libmysqlclient.so.15 => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00cfa000)
libm.so.6 => /lib/libm.so.6 (0x00804000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x009f8000)
libc.so.6 => /lib/libc.so.6 (0x0069e000)
/lib/ld-linux.so.2 (0x0067b000)
第二步:系统要确认动态库的地址,把动态库的路径放到/etc/ld.so.conf中
可以在/etc/ld.so.conf最后加一行/usr/local/lib
文件的内容初始为
include ld.so.conf.d/*.conf
在该文件中填上该动态库的绝对路径
例如:
vim /etc/ld.so.conf.d/ld.mysql.so.conf
/usr/local/mysql/lib
第三步:运行ldconfig重建/etc/ld.so.cache
- 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 的解决。
- libstdc++.so.6: 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
- 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
- libcxcore.so.1: cannot open shared object file: No such file or directory
- switch枚举时,要不要把枚举的每个值都写进case里?
- Java DecimalFormat 用法
- 多线程编程--锁机制及join方法的使用
- HDU_2039 三角形
- CodeForces 25D Roads not only in Berland
- cannot open shared object file: No such file or directory 的问题解决
- 酒品=人品?
- Spring IOC使用外部属性文件
- Worklight Developer Edition 介绍
- EDN-直流电机驱动电路设计
- ubuntu创建桌面起动器
- 163-H桥电机驱动电路
- 体育馆管理系统源代码
- OCJP(1Z0-851) 模拟题分析(六)