275553385 发表于 2013-2-7 01:46:31

configure: error: Cannot find MySQL header files

编译PHP时提示:configure: error: Cannot find MySQL header files 。
找不到mysql的头文件。机器上的mysql的安装centos的时候自带的。

需要yum安装mysql-devel。
yum install mysql-devel .
然后在php编译的configure中添加--with-mysql=/usr。

要找到对应的mysql.h的文件。rpm包安装的话,在/usr/include/mysql文件夹下面。
页: [1]
查看完整版本: configure: error: Cannot find MySQL header files