CentOS5下用yum安装了 mysql 及 mysql-server , 在编译安装php-5.2.9时用 --with-mysql 选项出现
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore.
这个是缺少了 mysql-devel 安装包,用
#yum install -y mysql-devel
即可解决问题
本文介绍在CentOS5系统中使用yum安装mysql及mysql-server后,在编译安装php-5.2.9过程中遇到缺少MySQL头文件的问题,并提供了解决方案:通过安装mysql-devel包来获取所需的头文件。

490

被折叠的 条评论
为什么被折叠?



