lamp报错总集

configure: error: in `/usr/local/src/httpd-2.2.16/srclib/apr':

   yum install -y pcre pcre-devel apr apr-devel



onfigure: error: no acceptable C compiler found in $PATH

       

原因是没有安装gcc组件

 

解决方案:

在线安装gcc,命令如下:

#yum -y install gcc

checking for zlib location... not found

yum install -y zlib-devel openssl-devel



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

今天在编译php的时候,出现如下错误php安装出错:configure: error: mcrypt.h not found. Please reinstall libmcrypt.,意思是,没有查找到mcrytp.h,需要安装libcrytp,在下面的地址下载libmarypt:
wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz

安装: 
66 tar -zxvf libmcrypt-2.5.7.tar.gz 
67 cd libmcrypt-2.5.7 
68 mkdir -p /usr/local/libmcrytp 
69 ./configure prefix=/usr/local/libmcrytp/ 
70 make
71 make install 
然后再安装PHP


你可能感兴趣的:(lamp报错总集)