centos-rhel服务器相关 / php / 未分类 · 2015年4月2日

configure: error: Cannot find libmysqlclient under /usr. Note that the MySQL client library is not bundled anymore! php安装错误收集

configure: error: Cannot find libmysqlclient under /usr. Note that the MySQL client library is not bundled anymore!
这个错误时因为在64位的linux系统中,libmysqlclient 默认安装到了 /usr/lib64/mysql/ 目录下,但是php编译时,要去/usr/lib目录下查找
解决办法:在/usr/lib目录下创建一个软连接
[[email protected] ~]# ls /usr/lib64/mysql/libmysqlclient*
/usr/lib64/mysql/libmysqlclient_r.so /usr/lib64/mysql/libmysqlclient_r.so.16.0.0 /usr/lib64/mysql/libmysqlclient.so.16
/usr/lib64/mysql/libmysqlclient_r.so.16 /usr/lib64/mysql/libmysqlclient.so /usr/lib64/mysql/libmysqlclient.so.16.0.0
[[email protected] ~]# ln -s /usr/lib64/mysql/libmysqlclient.so.16 /usr/lib/libmysqlclient.so

最后编译成功:
+——————————————————————–+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+——————————————————————–+