Solve various error methods in PHP compilation

Source: Internet
Author: User
Tags curl gmp install openssl mysql client openssl snmp
1) configure:error:xml2-config not found. Please check your LIBXML2 installation.

Solutions:

Quote:

# yum Install libxml2 Libxml2-devel

2) Checking for pkg-config .../usr/bin/pkg-config configure:error:Cannot find OpenSSL ' s <evp.h>

Solutions:

Quote:

# yum Install OpenSSL Openssl-devel

3) Configure:error:Please Reinstall the BZIP2 distribution

Solutions:

Quote:

# yum Install bzip2 Bzip2-devel

4) Configure:error:Please Reinstall the Libcurl distribution-easy.h should is in <curl-dir>/include/curl/

Solutions:

Quote:

# Yum Install Curl Curl-devel

5) Configure:error:libjpeg. (also) not found.

Solutions:

Quote:

# yum Install Libjpeg Libjpeg-devel

6) Configure:error:libpng. (also) not found.

Solutions:

Quote:

# yum Install libpng libpng-devel

7) configure:error:freetype.h not found.

Solutions:

Quote:

#yum Install Freetype-devel

8) Configure:error:Unable to locate Gmp.h

Solutions:

Quote:

# yum Install Gmp-devel

9) Configure:error:Cannot Find MySQL header files under/usr. The MySQL client library is not bundled anymore!

Solutions:

Quote:

# yum Install Mysql-devel

Configure:error:Please Reinstall the ncurses distribution

Solutions:

Quote:

# yum Install ncurses Ncurses-devel

Checking for UNIXODBC support ... configure:error:ODBC header file '/usr/include/sqlext.h ' not found!

Solutions:

Quote:

# yum Install Unixodbc-devel

Configure:error:Cannot Find Pspell

Solutions:

Quote:

# yum Install Pspell-devel

Configure:error:mcrypt.h not found. Please reinstall Libmcrypt.

Solutions:

Quote:

# yum Install Libmcrypt Libmcrypt-devel

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

Solutions:

Quote:

# yum Install Net-snmp Net-snmp-devel

Configure:error:Please Reinstall Libmhash–i Cannot find MHASH.H

#yum Install Mhash-devel
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.