ImportError: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
来源:互联网 发布:淘宝添加不了购物车 编辑:程序博客网 时间:2024/05/22 12:27
原因是python无法找到mysql目录下的libmysqlclient_r.so.16动态库,其实MySQLdb是调用mysql的c函数库.所以本机上首先得安装了mysql
然后: export LD_LIBRARY_PATH=/usr/local/mysql/lib/mysql:$LD_LIBRARY_PATH
并且将/usr/local/mysql5.1/lib/mysql 放入/etc/ld.so.conf中
/etc/ld.so.conf改后内容为:
include ld.so.conf.d/*.conf
/usr/local/mysql5.1/lib/mysql
最后重新再测试一下,就不会有上面的问题了
然后: export LD_LIBRARY_PATH=/usr/local/mysql/lib/mysql:$LD_LIBRARY_PATH
并且将/usr/local/mysql5.1/lib/mysql 放入/etc/ld.so.conf中
/etc/ld.so.conf改后内容为:
include ld.so.conf.d/*.conf
/usr/local/mysql5.1/lib/mysql
最后重新再测试一下,就不会有上面的问题了
- ImportError: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
- ImportError: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
- 遇到了ImportError: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
- Error loading MySQLdb module: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
- ImportError: libghmm.so.1: cannot open shared object file: No such file or directory 解决方案
- ImportError: libmysqlclient.so.18: cannot open shared object file: No such file or directory
- ImportError: libmysqlclient.so.18: cannot open shared object file: No such file or directory
- ImportError: libffi.so.6: cannot open shared object file: No such file or directory
- ImportError: libcudart.so.7.0: cannot open shared object file: No such file or directory
- caffe遇到 ImportError: libcudart.so.7.5: cannot open shared object file: No such file or directory
- ImportError: libclntsh.so.11.1: cannot open shared object file: No such file or directory解决方案
- ImportError: libmysqlclient.so.18: cannot open shared object file: No such file or directory
- ImportError: libopencv_core.so.3.1: cannot open shared object file: No such file or directory
- ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory
- ImportError: libmkldnn.so.0: cannot open shared object file: No such file or directory
- ImportError: libmysqlclient.so.18: cannot open shared object file: No such file or directory
- ImportError: libmkldnn.so.0: cannot open shared object file: No such file or directory
- 【报错】ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory
- 用 C# 做人臉檢測(基於EmguCV)
- 关于网络编程(服务端)的一些笔记
- 再看《程序员文史综合题》。。。
- Android Study —— Activities
- GDI+繪制極坐標圖、雷達圖
- ImportError: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
- 用PHP模拟登录WAP飞信实现飞信发送
- STL中sets的基本用法
- poj3565 Ants
- 使用RecoverySystem.installPackage实现 android卡刷系统
- Xilinx FPGA设计经验小谈 2012_7_28
- matlab和c的小数问题
- 场景记忆法--信管考试通关技巧
- Linux常用C函数-内存及字符串操作篇