解决错误 libmysqlclient.so.18: cannot open shared object file: No such file or directory
来源:互联网 发布:修改vnc端口 编辑:程序博客网 时间:2024/05/29 08:10
我的环境是 centos6.5
在连接数据库的时候发现编译可以通过,但是执行的时候提示下面的保存信息。
error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
解决方法:
在系统搜索找到你的库文件所在位置,在gcc 或Makefile 中引入正确的位置即可。
centos 改为 gcc -o test tst.c -L/usr/lib/mysql 。
阅读全文
0 0
- 解决错误 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: libmysqlclient.so.18: cannot open shared object file: No such file or directory
- 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
- libmysqlclient.so.18: cannot open shared object file: No such file or directory
- 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
- libmysqlclient.so.18: cannot open shared object file: No such file or directory
- libmysqlclient.so.15: cannot open shared object file: No such file or directory
- libmysqlclient.so.15: cannot open shared object file: No such file or directory
- libmysqlclient.so.15: cannot open shared object file: No such file or directory
- libmysqlclient.so.16: cannot open shared object file: No such file or directory
- libmysqlclient.so.15: cannot open shared object file: No such file or directory
- libmysqlclient.so.15: cannot open shared object file: No such file or directory
- libmysqlclient.so.15: cannot open shared object file: No such file or directory
- libmysqlclient.so.16: cannot open shared object file: No such file or directory
- libmysqlclient.so.15: cannot open shared object file: No such file or directory
- 消息封装与解析
- 【Spring】Spring Framework Reference Documentation中文版26
- java RSA加密生成license,用CPU序列号生成机器码
- LeiQ手把手带你搭博客(一)——整体结构及VPS和域名的购买与解析
- 欢迎使用CSDN-markdown编辑器
- 解决错误 libmysqlclient.so.18: cannot open shared object file: No such file or directory
- webservice接口net
- 补一号的和三号的
- gml+wms+ol注意的一个问题点
- 数据迁移 关联表跟新字段 MERGE INTO
- 基于mt7628+mt7612e双频wifi自组网
- Js&JQuery常用集绵
- 加密软件VMProtect入门教程
- TestNG单元测试框架使用