Summary of common errors when compiling configure PHP

Source: Internet
Author: User
Tags gmp install openssl mysql client snmp openldap

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

Some of the online statements are: –with-named-curses-libs=/usr/lib/libncursesw.so.5
Actually is wrong, although can solve the configure error, but make the time will prompt the error, the correct practice should be
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 have been requested but can is not being 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 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-devel
Debian:apt-get Install Zlib1g-dev

This article from the "Linux operation and maintenance of the road" blog, declined to reprint!

Summary of common errors when compiling configure PHP

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.