Common errors with PHP compile configure

Source: Internet
Author: User
Tags gmp install openssl snmp openldap
This article mainly introduces the compilation of PHP configure common error Summary of the relevant information, this article summarizes some common configure error information and the experience of resolving these errors, the need for friends can refer to the following

Summary of common errors when compiling configure PHP

Although the installation of PHP is sometimes very simple, but if the application of a lot, we installed a headache! The most error is the time to install the PHP extension. In fact, whether you are Apache application or Nginx class, PHP installation is not very simple, although there are many configure parameters on the Internet, but that is not necessarily suitable for you, because many are directly related to your system version and kernel. Therefore, it is necessary to constantly debug themselves in order to fully install the success. This article summarizes some common configure error messages and experience in resolving these errors.

1, Configure:error:No Curses/termcap Library found

Some of the online saying is: –with-named-curses-libs=/usr/lib/libncursesw.so.5 is actually wrong, although can solve configure error, but make the time will prompt error, the correct way should be

Centos:yum-y Install Ncurses-develdebian:apt-get Install Libncurses5-dev

2, Configure:error:xml2-config not found. Please check your LIBXML2 installation.

Centos:yum-y Install libxml2 libxml2-develdebian: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 gdcentos:yum-y install gd-develdebian: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 have been requested but can is not being built due to prerequisite failures

Centos:yum-y Install zlib-devel openssl-develdebian:apt-get Install Zlib1g-dev

8, configure:error:libxpm. (A|SO) not found.

Centos:yum-y Install Libxpm-devdebian:apt-get Install Libxpm-dev

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

Centos:yum Install Freetype-develdebian:apt-get Install Libfreetype6-dev

10, Configure:error: ... No recognized SSL/TLS toolkit detected

Centos:yum-y Install Libssl-devdebian:apt-get Install Libssl-dev

11, Configure:error:Please Reinstall the BZIP2 distribution

Centos:yum Install bzip2 bzip2-develdebian: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 isn't 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. Opening the LDAP Service also requires

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 have been requested but can is not being built due to prerequisite failures

Centos:yum-y Install zlib-devel openssl-develdebian:apt-get Install Zlib1g-dev

The above is the whole content of this article, I hope that everyone's learning has helped, more relevant content please pay attention to topic.alibabacloud.com!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.