php 扩展错误返回,php - 安装(或者安装php扩展)错误集锦

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

解决方法:

#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 /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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值