PHP编译报错configure: error: Cannot find libmysqlclient under 解决方法
2015-03-26 23:32
916 查看
首先做一个软连接
这个时候 mysql会默认到 /user/lib/里面去找到libmysqlclient.so
然后重新编译php
注意 编译的时候
不要指定mysql的路径,默认就好了
等一会就可以看到编译成功了
ln -s /usr/local/mysql/lib/mysql/lib* /usr/lib/ # 为动态链接库做一个软连接
这个时候 mysql会默认到 /user/lib/里面去找到libmysqlclient.so
然后重新编译php
注意 编译的时候
--with-mysql=/Data/apps/mysql --with-mysqli=/Data/apps/mysql/bin/mysql_config
不要指定mysql的路径,默认就好了
等一会就可以看到编译成功了
相关文章推荐
- 编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法
- 编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法
- 64位centos上nginx,php编译安装遇configure: error: Cannot find libmysqlclient under /usr 错误解决
- 编译PHP时候报错:configure: error: Cannot find libmysqlclient under /usr 解决
- php 安装 configure: error: Cannot find libmysqlclient under /usr. 解决
- 解决configure: error: Cannot find libmysqlclient under /usr.
- 正文字体大小:大 中 小 解决configure: error: Cannot find libmysqlclient under /usr
- 编译PHP时提示:configure: error: Cannot find MySQL header files under /usr. 解决
- configure: error: Cannot find libmysqlclient under /usr 解决
- libssh2编译错误(configure error: cannot find OpenSSL or Libgcrypt)解决方法
- 解决:error: Cannot find libmysqlclient_r under /usr/local/mysql.
- 安装centos 5下编译安装PHP时报错configure: error: Cannot find MySQL header files under
- configure: error: Cannot find libmysqlclient under /usr
- 编译php时出现“configure: error: Cannot find MySQL header files under”
- 解决php编译报错configure: error: Cannot find OpenSSL's <evp.h>
- configure: error: Cannot find libmysqlclient under /usr.
- configure: error: Cannot find libmysqlclient_r under /usr/local/mysql.
- configure: error: Cannot find libmysqlclient_r under /usr/local/mysql.
- 编译PHP时:configure: error: Cannot find MySQL header files under /usr/mysql
- configure: error: Cannot find libmysqlclient under /usr/local/mysql.