正文字体大小:大 中 小 解决configure: error: Cannot find libmysqlclient under /usr
2016-03-28 17:16
956 查看
今天在64位centos5.6系统上编译PHP5.2.17报错
经查,问题是64位系统中 libmysqlclient 默认安装到了 /usr/lib64/mysql/ 目录下
而/usr/lib 目录下没有相应文件,但是php编译时,要去 /usr/lib目录下查找
解决方法:
ln -s /usr/lib64/mysql/libmysqlclient.so.15.0.0 /usr/lib/libmysqlclient.so
转自:http://blog.sina.com.cn/s/blog_4b6636880100vqk5.html
checking for MySQL support... yes, shared checking for specified location of the MySQL UNIX socket... no checking for the location of libz... no checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock configure: error: Cannot find libmysqlclient under /usr. Note that the MySQL client library is not bundled anymore! [root@zjlca mysql]#
经查,问题是64位系统中 libmysqlclient 默认安装到了 /usr/lib64/mysql/ 目录下
而/usr/lib 目录下没有相应文件,但是php编译时,要去 /usr/lib目录下查找
解决方法:
ln -s /usr/lib64/mysql/libmysqlclient.so.15.0.0 /usr/lib/libmysqlclient.so
转自:http://blog.sina.com.cn/s/blog_4b6636880100vqk5.html
相关文章推荐
- 如何在windowns终端用命令对mysql进行导入导出
- mysql配置的讲解 mysql的root密码重置 mysql的登录
- MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 解决方法
- 安装MySQL在最后的start service停住了解决方法
- Mysql 修改密码
- MySQL备份学习
- Mysql支持的数据类型(总结)
- MySQL允许远程访问的设置
- MySQL系列:事务机制
- MySQL远程访问权限,允许远程连接
- mysql之limit m,n
- 统计mysql下的binlog里的语句执行次数
- MYSQL中replace into的用法
- mysql 随机查询 记录集
- Hibernate之mysql-connecter jdbc error 一
- Mysql float类型where 语句判断相等问题
- MySQL中SELECT+UPDATE处理并发更新问题解决方案分享
- ubuntu 安装mysql
- 关于mysql的内连接,外连接,交叉连接
- MySQL中去除字段中的回车符和换行符