1.
configure 错误提示:
checking whether to enable mod_deflate... configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
解决办法:
zlib-devel 没装的原因
yum install gcc zlib-devel openssl-devel(装这个package会有一堆关联包装上)
====debian 中的包 apt-get install zlib1g-dev
2
no SSL-C headers found
configure: error: ...No recognized SSL/TLS toolkit detected
解决办法:
httpd-2.2.8# aptitude install python-openssl
aptitude install libssl-dev
3
configure: error: no XML parser was found: expat or libxml 2.x required
configure failed for neon
解决办法:
# aptitude install libxml2-dev
安装mysql一切顺利
PHP的一些问题:
configure: error: libpng.(a|so) not found.
configure: error: png.h not found
If configure fails try--with-xpm-dir=<DIR>
configure: error: freetype.h not found.
If configure fails try--with-xpm-dir=<DIR>
checking for FT_New_Face in -lfreetype... no
configure: error: Problem with freetype.(a|so). Please check config.log for more information.
Notice: Following unknown configure options were used:
--with-png
--with-xml
#########################################
出现以上问题主要是由于在使用
#rpm -e --nodeps httpd
#rpm -e --nodeps php
#rpm -e --nodeps mysql
做强制删除时将相关联的程序给强制删除了,才会出现在安装php时的报错,建议最好慎用该方式;
打上以下相关的RPM包可以解决在./configure 时的报错:
freetype-devel-2.1.9-1.i386.rpm
gd-devel-2.0.28-4.i386.rpm
httpd-2.0.52-9.ent.i386.rpm
libjpeg-6b-33.i386.rpm
libjpeg-devel-6b-33.i386.rpm
libpng10-devel-1.0.16-1.i386.rpm
libpng-1.2.7-1.i386.rpm
libpng-devel-1.2.7-1.i386.rpm
rpm -ivh libpng-devel-1.2.7-1.i386.rpm
###################################
建议大家在删除前后用进行检查环境
#rpm -q -a|grep -i freetype
#rpm -q -a|grep -i gd-
#rpm -q -a|grep -i libjpeg
#rpm -q -a|grep -i ibpng