php的配置文件中有一行--with-mysql=/usr。安装的时候提示:
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore.
这是由于安装mysql时没有安装mysql头文件,或者是路径指定不正确,php找不到mysql的头文件引起的错误提示。
解决方法。
1. 查看你的系统有没有安装mysql header
find / -name mysql.h
如果有。请指定--with-mysql=/跟你的正常路径。
如果没有。请看下一步。
2.redhat安装
rpm -ivh MySQL-devel-4.1.12-1.i386.rpm
3.debian安装
apt-get install libmysqlclient15-dev
4.最后一步php的配置选项添加--with-mysql=/usr即可!
编译安装php时提示Cannot find MySQL header files的解决方法
最新推荐文章于 2021-05-27 13:31:48 发布
