您的位置:首页 > 编程语言 > PHP开发

安装PHP出现错误:Cannot find MySQL header

2015-10-28 16:53 711 查看
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

即可解决问题
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: