首页 > 数据库技术 > 详细

编译安装php时提示Cannot find MySQL header files的解决方法

时间:2015-08-26 17:18:21      阅读:371      评论:0      收藏:0      [点我收藏+]

php的配置文件中有一行--with-mysql=/usr/local/mysql ,安装的时候提示:
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安装
#yum install -y mysql-devel

 

编译安装php时提示Cannot find MySQL header files的解决方法

原文:http://www.cnblogs.com/fjping0606/p/4760793.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!