安装PHP编译提示错误:
configure: error: Cannot find MySQL header files under /usr/bin/.
Note that the MySQL client library is not bundled anymore!
mysql路径:/usr/bin/mysql
mysql.h路径:usr/include/mysql/mysql.h
编译PHP时设置:
./configure –prefix=/usr/local/php5
–with-config-file-path=/usr/local/php5/etc
–with-mysql=/usr/bin/
–with-mysqli=/usr/bin/mysql_config
mysql版本:5.5.27
PHP版本: 5.4.6
已安装了mysql、mysql client、mysql-devel(都是rpm包安装)
解决方法:
–with-config-file-path=/usr 便可
转载请注明:苏demo的别样人生 » 安装PHP提示error: Cannot find MySQL header files under 错误!!