configure: error: Cannot find libmysqlclient under /usr Note that the MySQL client library is not bu
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了configure: error: Cannot find libmysqlclient under /usr Note that the MySQL client library is not bu相关的知识,希望对你有一定的参考价值。
错误说明
今天在centos 6.3 64位版本上安装php5.4.3时在./configure 步骤的时候出现了下面错误
configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!
原因分析与解决
通过查找libmysqlclient,发现是在/usr/lib64/mysql/目录内的libmysqlclient.so.15.0.0做的软连接,PHP默认是去的/usr/lib/搜索,所以没有找到.
解决办法就是:
cp /usr/lib64/mysql/* /usr/lib/mysql/
然后进行./configure即可,如果服务器没有/usr/lib/mysql/ 目录,则在/usr/lib/目录下创建mysql目录即可
以上是关于configure: error: Cannot find libmysqlclient under /usr Note that the MySQL client library is not bu的主要内容,如果未能解决你的问题,请参考以下文章
checking for SSL... configure: error: Cannot find ssl libraries
configure: error: Cannot find ldap libraries in /usr/lib 解决办法
编译安装php服务报错问题:configure: error: Cannot find libmysqlclient under /usr.
configure: error: Cannot find php_pdo_driver.h.
Sitecore 9 安装 - error - Config Error: This configuration section cannot be used at this path. This h