PHP编译configure时常见错误

p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Tahoma; color: #333333; background-color: #ffffff }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Tahoma; color: #ce3535; background-color: #ffffff }
span.s1 { color: #ce3535 }
span.s2 { }
span.s3 { color: #333333 }
span.s4 { color: #df3434 }

1、configure: error: No curses/termcap library found

网上有的说法是:–with-named-curses-libs=/usr/lib/libncursesw.so.5

其实是不对的,虽然能解决configure的错误,但是make的时候会提示错误,正确的做法应该是

centos: yum -y install ncurses-devel

debian: apt-get install libncurses5-dev

2、configure: error: xml2-config not found. Please check your libxml2 installation.

centos: yum -y install libxml2 libxml2-devel

debian: apt-get install libxml2-dev

3、configure: error: Cannot find OpenSSL’s

centos: yum -y install openssl-devel

4、configure: error: libjpeg.(a|so) not found

centos: yum -y install gd

centos: yum -y install gd-devel

debian: apt-get install libjpeg-dev

5、configure: error: libpng.(a|so) not found.

apt-get install libpng12-dev

6、configure: error: cannot find output from lex; giving up

yum -y install flex

7、configure: error: mod_deflate has been requested but can not be built due to prerequisite failures

centos: yum -y install zlib-devel openssl-devel

debian: apt-get install zlib1g-dev

8、configure: error: libxpm.(a|so) not found.

centos: yum -y install libxpm-dev

debian: apt-get install libxpm-dev

9、configure: error: freetype.h not found.

centos: yum install freetype-devel

debian: apt-get install libfreetype6-dev

10、configure: error: …No recognized SSL/TLS toolkit detected

centos: yum -y install libssl-dev

debian: apt-get install libssl-dev

11、Configure: error: Please reinstall the BZip2 distribution

centos: yum install bzip2 bzip2-devel

debian: apt-get install bzip2-devel

12、Configure: error: Please reinstall the libcurl distribution – easy.h should be in /include/curl/

centos: yum install curl curl-devel (For Redhat & Fedora)

# install libcurl4-gnutls-dev (For Ubuntu)

13、Configure: error: Unable to locate gmp.h

centos: yum install gmp-devel

14、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)

15、Configure: error: Please reinstall the ncurses distribution

Solutions :

centos: yum install ncurses ncurses-devel

16、Checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h’ not found!

Solutions :

centos: yum install unixODBC-devel

17、Configure: error: Cannot find pspell

Solutions :

centos: yum install pspell-devel

18、configure: error: mcrypt.h not found. Please reinstall libmcrypt.

Solutions :

yum install libmcrypt libmcrypt-devel (For Redhat & Fedora)

# apt-get install libmcrypt-dev

19、Configure: error: snmp.h not found. Check your SNMP installation.

Solutions :

yum install net-snmp net-snmp-devel

20、开启LDAP服务还需要

yum -y install openldap-devel openldap-servers openldap-clients

21、configure: error: cannot find output from lex; giving up

centos: yum -y install flex

22、configure: error: mod_deflate has been requested but can not be built due to prerequisite failures

centos: yum -y install zlib-devel openssl-devel

debian: apt-get install zlib1g-dev

时间: 2024-10-10 06:04:07

PHP编译configure时常见错误的相关文章

PHP编译configure时常见错误总结

1.configure: error: No curses/termcap library found 网上有的说法是:–with-named-curses-libs=/usr/lib/libncursesw.so.5其实是不对的,虽然能解决configure的错误,但是make的时候会提示错误,正确的做法应该是centos: yum -y install ncurses-develdebian: apt-get install libncurses5-dev 2.configure: erro

PHP编译安装时常见错误解决办法,php编译常见错误

PHP编译安装时常见错误解决办法,php编译常见错误 1.configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution 解决方法: yum -y install libxslt-devel 2.configure: error: Could not find net-snmp-config binary. Please check your net-snmp installa

linux编译安装时常见错误解决办法

linux编译安装时常见错误解决办法 This article is post on https://coderwall.com/p/ggmpfa 原文链接:http://www.bkjia.com/PHPjc/1008013.html configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution复制代码 代码如下:yum -y install libxslt-devel c

PHP编译安装时常见错误解决办法

This article is post on https://coderwall.com/p/ggmpfa configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution 代码如下: yum -y install libxslt-devel configure: error: Could not find net-snmp-config binary. Please chec

编译pure-ftpd时提示错误Your MySQL client libraries aren't properly installed

如果出现类似configure: error: Your MySQL client libraries aren’t properly installed 的错误,请将mysql目录下的 include/mysql下的mysql.h文件以及lib/mysql下的全部文件,连接(直接复制过去或许也可)到 /usr/lib 目录下(参考) cp /www/wdlinux/mysql-5.5.x/include/mysql/mysql.h /usr/lib/ cp /www/wdlinux/mysql

linux 编译安装php及编译安装mysql常见错误总结及解决办法

一.编译安装php常见错误总结及解决办法 错误 1checking for xml2-config path…configure: error: xml2-config not found. Please check your libxml2 installation.解决办法:# yum -y install libxml2-devel 错误 2 checking for BZip2 in default path… not foundconfigure: error: Please rein

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

PHP编译过程中常见错误信息的解决方 checking for BZip2 support- yes checking for BZip2 in default path- not found configure: error: Please reinstall the BZip2 distribution Fix: yum install bzip2-devel checking for cURL support- yes checking if we should use cURL for

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

LAMP系列之PHP编译过程中常见错误信息的解决方法 在CentOS编译PHP5的时候有时会遇到以下的一些错误信息,基本上都可以通过yum安装相应的库来解决.以下是具体的一些解决办法: ******************************************************************************* checking for BZip2 support- yes checking  for BZip2 in default path- not foun

WAVSEP在Linux系统中部署时常见错误

使用Tomcat部署时常见错误 环境:Debian7 , tomcat7, WAVSEP v1.5 安装时提示: javax.servlet.ServletException: java.sql.SQLException: Database 'db/WavsepConfigDB'  not found 原因: tomat用户没有写入根目录的权限. 解决办法: 以root身份运行,在根目录建立db目录并将所有权授予tomcat用户. #mkdir /db #chown -R tomcat:tomc