2023-05-12 开启多语言插件支持……

安装PHP提示error: Cannot find MySQL header files under 错误!!

Linux 苏 demo 2514℃ 0评论

安装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 错误!!

   如果本篇文章对您有帮助,欢迎向博主进行赞助,赞助时请写上您的用户名。
支付宝直接捐助帐号oracle_lee@qq.com 感谢支持!
喜欢 (0)or分享 (0)