Apr 17

php编译错误Note that the MySQL client library is not bundled anymore! 多云

, 09/04/17 13:52 , 技术开发 » 系统网络 , 评论(0) , 引用(0) , 阅读(6096) , Via 本站原创 | |
##### install php
##download http://jp.php.net/downloads.php
wget http://jp.php.net/get/php-5.2.9.tar.gz/from/this/mirror
rpm -qa | grep php
rpm -e php-ldap-5.1.6-20.el5 php-5.1.6-20.el5

tar -zxvf php-5.2.9.tar.gz
cd php-5.2.9
./configure --prefix=/usr/local/php --with-mysql=/usr/local/src/mysql-5.1.14-beta-linux-i686-glibc23/include/ --with-apxs2=/usr/local/apache2/bin/apxs
到最后报错:
configure: error: Cannot find MySQL header files under /usr/local/src/mysql-5.1.14-beta-linux-i686-glibc23/include/.
Note that the MySQL client library is not bundled anymore!

解决方法。
1. 查看系统有没有安装mysql header
find / -name mysql.h
如果有。请指定--with-mysql=/跟正常路径。
如果没有。请看下一步。

2.redhat安装
rpm -ivh MySQL-devel-community-5.1.33-0.rhel5.i386.rpm

3.最后一步php的配置选项添加--with-mysql=/usr即可!

完整的编译参数:


作者:@Everyday NetLog
地址:http://log.zhoz.com/read.php?563
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!

发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]