php编译安装常见错误

转载 2012年03月28日 15:27:36
精典错误
  /libxmlrpc/encoding.c:101:undefined reference to 'libiconv_close'
  collect2: ld returned 1 exit status
  make:*** [sapi/fpm/php-fpm] Error 1
  解决方法:
  #make ZEND_EXTRA_LIBS='-liconv'
  错误一、编译php出错
  /php-5.3.2/ext/fileinfo/libmagic/apprentice.c:147:internal compiler error:Segmentation fault
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
  The bug is not reproducible,so it is likely a hardware or OS problem.
  make:*** [ext/fileinfo/libmagic/apprentice.lo] Error 1
  解决方法:内存大于1G即可,这是php5.3.2的一个bug
  --------------------------------------------------------------------
  错误二、重新构造configure文件出错
  ./buildconf --force
  Forcing buildconf
  buildconf:checking installation…
  buildconf:autoconf version 2.59 (ok)
  buildconf:Your version of autoconf likely contains buggy cache code.
  Running vcsclean for you.
  To avoid this,install autoconf-2.13.
  Can't figure out your VCS, not cleaning.
  解决方法:编译安装autoconf-2.13
  再将autoconf-2.13的auotconf文件至/usr/local/autoconf
  --------------------------------------------------------------------
  错误三、编译时缺少库
  configure: error: libXpm.(a|so) not found.
  解决方法:yum install libXpm-devel
  --------------------------------------------------------------------
  错误四、编译时缺少gmp.h文件
  configure: error: Unable to locate gmp.h
  解决方法:yum install gmp-devel
  --------------------------------------------------------------------
  错误五
  Configure: error: xml2-config not found. Please check your libxml2 installation.
  解决方法:
  #yum install libxml2 libxml2-devel (For Redhat & Fedora)
  # aptitude install libxml2-dev      (For ubuntu)
  --------------------------------------------------------------------
  错误六
  Checking for pkg-config… /usr/bin/pkg-config
  configure: error: Cannot find OpenSSL’s <evp.h>
  解决方法:
  #yum install openssl openssl-devel
  --------------------------------------------------------------------
  错误七
  Configure: error: Please reinstall the BZip2 distribution
  解决方法:
  # yum install bzip2 bzip2-devel
  --------------------------------------------------------------------
  错误八
  Configure: error: Please reinstall the libcurl distribution -
  easy.h should be in <curl-dir>/include/curl/
  解决方法:
  # yum install curl curl-devel   (For Redhat & Fedora)
  # install libcurl4-gnutls-dev    (For Ubuntu)
  --------------------------------------------------------------------
  错误九:
  Configure: error: libjpeg.(also) not found.
  解决方法:
  # yum install libjpeg libjpeg-devel
  --------------------------------------------------------------------
  错误十
  Configure: error: libpng.(also) not found.
  --------------------------------------------------------------------
  解决方法:
  # yum install libpng libpng-devel
  --------------------------------------------------------------------
  错误十一
  Configure: error: freetype.h not found.
  解决方法:
  #yum install freetype-devel
  --------------------------------------------------------------------
  错误十二
  Configure: error: Unable to locate gmp.h
  解决方法:
  # yum install gmp-devel
  --------------------------------------------------------------------
  错误十三
  Configure: error: Cannot find MySQL header files under /usr.
  Note that the MySQL client library is not bundled anymore!
  解决方法:
  # yum install mysql-devel            (For Redhat & Fedora)
  # apt-get install libmysql++-dev      (For Ubuntu)
  --------------------------------------------------------------------
  错误十四
  Configure: error: Please reinstall the ncurses distribution
  解决方法:
  # yum install ncurses ncurses-devel
  --------------------------------------------------------------------
  错误十五
  Checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h’ not found!
  解决方法:
  # yum install unixODBC-devel
  --------------------------------------------------------------------
  错误十六
  Configure: error: Cannot find pspell
  解决方法:
  # yum install pspell-devel
  --------------------------------------------------------------------
  错误十七
  configure: error: mcrypt.h not found. Please reinstall libmcrypt.
  解决方法:
  # yum install libmcrypt libmcrypt-devel    (For Redhat & Fedora)
  # apt-get install libmcrypt-dev
  --------------------------------------------------------------------
  错误十八
  Configure: error: snmp.h not found. Check your SNMP installation.
  解决方法:
  # yum install net-snmp net-snmp-devel
  --------------------------------------------------------------------
  错误十九
  configure:error:Cannot find ldap.h
  解决方法:
  #yum install openldap-devel openldap
  错误二十
  configure:error:xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
  解决方法:
  #yum install libxslt libxslt-devel
  错误二十一
  checking for libevent >=1.4.11 install prefix… configure: error: Could not find libevent >=1.4.11 in /usr/local/php
  解决方法:
  安装libevent-1.4.11以上版本至/usr/local
  tar xzvf libevent-1.4.14-stable.tar.gz
  cd libevent-1.4.14-stable
  ./configure --prefix=/usr/local
  make&&make install
  在编译。/configure时添加--with-libevent-dir=/usr/local即可
  错误二十二
  cc1: out of memory allocating 2036 bytes after a total of 81846272 bytes
  make: *** [ext/date/lib/parse_date.lo] Error 1
  报错:
  /usr/bin/ld: cannot find -lltdl
  collect2: ld returned 1 exit status
  make:*** [sapi/fpm/php-fpm] Error 1
  解决方法:
  安装ltdl
  #cd /libmcrypt-2.5.7/libltdl/
  #./configure --enable-ltdl-install
  #ldconfig
  #cd php-5.3.6
  #make ZEND_EXTRA_LIBS='-liconv'
  done s

ubuntu源码编译安装php常见错误解决办法

‘./configure’ ‘–prefix=/usr/local/php’ ‘–with-config-file-path=/etc’ ‘–with-mysql=/usr/local/mysql’ ...

安装PHP常见错误解决error: libjpeg.(a|so),error: libpng.(a|so) not found,error: Cannot find ldap

2010-06-09 23:24:32|  分类: Linux秘籍|举报|字号 订阅 果PHP的安装虽然有时候很简单,可是如应用一多,我们安装起来就很头痛了!常见的就是P...

PHP编译过程中常见错误信息的解决方法

在CentOS编译PHP5的时候有时会遇到以下的一些错误信息,基本上都可以通过yum安装相应的库来解决。以下是具体的一些解决办法: checking for BZip2 support… yes...

PHP编译configure时常见错误

PHP的安装虽然有时候很简单,可是如果应用一多,我们安装起来就很头痛了!出错最多的就是安装PHP扩展的时候了。其实不管是你是Apache类的应用还是Nginx类的,PHP的安装都不是很简单,虽然网上有...
  • dodott
  • dodott
  • 2015年11月05日 16:19
  • 4350

常见 PHP (5.4.24) 编译错误解决方法[备忘]

参见编译错误信息 configure: error: GD build test failed. Please check the config.log for details. 解决方法:  把编...
  • signmem
  • signmem
  • 2014年02月08日 00:07
  • 5534

安装PHP常见错误解决error

安装PHP常见错误解决error: libjpeg.(a|so),error: libpng.(a|so) not found,error: Cannot find ldap         PHP的...

电子书-php常见错误总结

  • 2010年09月23日 20:31
  • 67KB
  • 下载

php常用函数及解决常见错误

  • 2013年06月26日 16:55
  • 4KB
  • 下载

源码编译安装httpd及其常见错误

一、编译安装的整体步骤  1、在官网下载源码,并解压下载 2、切换到其目录中  3、执行./configure 4、编译   二、编译中及安装后配置常见的参数及其说明 编译中配...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:php编译安装常见错误
举报原因:
原因补充:

(最多只允许输入30个字)