----Install Error: php make err -----------

 centos  编译安装的时候出现了
----Install Error: php make err -----------

有没有可能是centos集成了阿帕奇的原因?

欢迎转载,但请保留此信息
[我的Linux,让Linux更易用] CentOS精简版,集成lamp,lnmp版,wdcp,wdcdn,wddns,一键安装包,集群负载均衡LVS,智能DNS/CDN,性能优化
本文连接:http://www.wdlinux.cn/old/node/900

尽量复制多一点的错误信息

尽量复制多一点的错误信息

 Thank you for using

 Thank you for using PHP.

 
/bin/sh /root/lanmp/php-5.2.17/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/ -I/root/lanmp/php-5.2.17/ext/date/ -DPHP_ATOM_INC -I/root/lanmp/php-5.2.17/include -I/root/lanmp/php-5.2.17/main -I/root/lanmp/php-5.2.17 -I/root/lanmp/php-5.2.17/ext/date/lib -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/root/lanmp/php-5.2.17/ext/mbstring/oniguruma -I/root/lanmp/php-5.2.17/ext/mbstring/libmbfl -I/root/lanmp/php-5.2.17/ext/mbstring/libmbfl/mbfl -I/www/wdlinux/mysql/include/mysql -I/root/lanmp/php-5.2.17/TSRM -I/root/lanmp/php-5.2.17/Zend    -I/usr/include -g -O2  -c /root/lanmp/php-5.2.17/ext/date/php_date.c -o ext/date/php_date.lo 
/bin/sh /root/lanmp/php-5.2.17/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/ -I/root/lanmp/php-5.2.17/ext/date/ -DPHP_ATOM_INC -I/root/lanmp/php-5.2.17/include -I/root/lanmp/php-5.2.17/main -I/root/lanmp/php-5.2.17 -I/root/lanmp/php-5.2.17/ext/date/lib -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/root/lanmp/php-5.2.17/ext/mbstring/oniguruma -I/root/lanmp/php-5.2.17/ext/mbstring/libmbfl -I/root/lanmp/php-5.2.17/ext/mbstring/libmbfl/mbfl -I/www/wdlinux/mysql/include/mysql -I/root/lanmp/php-5.2.17/TSRM -I/root/lanmp/php-5.2.17/Zend    -I/usr/include -g -O2  -c /root/lanmp/php-5.2.17/ext/date/lib/astro.c -o ext/date/lib/astro.lo 
/bin/sh /root/lanmp/php-5.2.17/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/ -I/root/lanmp/php-5.2.17/ext/date/ -DPHP_ATOM_INC -I/root/lanmp/php-5.2.17/include -I/root/lanmp/php-5.2.17/main -I/root/lanmp/php-5.2.17 -I/root/lanmp/php-5.2.17/ext/date/lib -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/root/lanmp/php-5.2.17/ext/mbstring/oniguruma -I/root/lanmp/php-5.2.17/ext/mbstring/libmbfl -I/root/lanmp/php-5.2.17/ext/mbstring/libmbfl/mbfl -I/www/wdlinux/mysql/include/mysql -I/root/lanmp/php-5.2.17/TSRM -I/root/lanmp/php-5.2.17/Zend    -I/usr/include -g -O2  -c /root/lanmp/php-5.2.17/ext/date/lib/dow.c -o ext/date/lib/dow.lo 
/bin/sh /root/lanmp/php-5.2.17/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/date/lib -Iext/date/ -I/root/lanmp/php-5.2.17/ext/date/ -DPHP_ATOM_INC -I/root/lanmp/php-5.2.17/include -I/root/lanmp/php-5.2.17/main -I/root/lanmp/php-5.2.17 -I/root/lanmp/php-5.2.17/ext/date/lib -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/root/lanmp/php-5.2.17/ext/mbstring/oniguruma -I/root/lanmp/php-5.2.17/ext/mbstring/libmbfl -I/root/lanmp/php-5.2.17/ext/mbstring/libmbfl/mbfl -I/www/wdlinux/mysql/include/mysql -I/root/lanmp/php-5.2.17/TSRM -I/root/lanmp/php-5.2.17/Zend    -I/usr/include -g -O2  -c /root/lanmp/php-5.2.17/ext/date/lib/parse_date.c -o ext/date/lib/parse_date.lo 
 
cc1: out of memory allocating 16392 bytes after a total of 52121600 bytes
make: *** [ext/date/lib/parse_date.lo] Error 1
 
 
----Install Error: php make err -----------

 Starting nginx: [emerg]:

 Starting nginx: [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)

[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)

这里应该就是系统自带的apache在运行的原因

这里应该就是系统自带的apache在运行的原因

 怎么把系统默认的lamp卸载掉

 怎么把系统默认的lamp卸载掉

 有相应的脚本吗

 有相应的脚本吗

rpm -e httpd*

rpm -e httpd*

 我使用了 rpm –qa | grep mysql

 我使用了 rpm –qa | grep mysql  列出来再rpm -e 才卸载成功了
然后yum update后重启 
然后用rpm安装成功了  接下来试试编译的
话说编译的和rpm有什么不同?

基本上,是一样的

基本上,是一样的

 Shutting down MySQL........

 Shutting down MySQL........ SUCCESS! 

   1:mysql                  ########################################### [100%]
Starting MySQL. SUCCESS! 
/www/wdlinux/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
error: %post(mysql-5.1.55-1.i386) scriptlet failed, exit status 1
 
============  mysql install error  =============

 卸载了还是出错了 郁闷啊 checking for

 卸载了还是出错了
郁闷啊

checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
configure: error: Cannot find MySQL header files under /www/wdlinux/mysql.
Note that the MySQL client library is not bundled anymore!
 
 
----Install Error: php configure err -----------

完整卸载 rpm -e httpd* rpm -e

完整卸载
rpm -e httpd*
rpm -e mysql*
rpm -e php*

rpm包安装还是出错了

 提示

Starting php_fpm  done
error: %post(php-5.2.17-1.i386) scriptlet failed, exit status 1
 
============  php install error  =============