Errors encountered while compiling PHP

Source: Internet
Author: User
Tags install openssl mcrypt

Error 1

Checking for Xml2-config path ...
Configure:error:xml2-config not found. Please check your LIBXML2 installation.

LIB Library did not install first with the Yum search name to see if you can search the name, find the name after the package development packaging

Solutions

Yum Install libxml2-devel.x86_64

Error 2

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

SSL not installed

Solutions

Yum Install openssl.x86_64 openssl-devel.x86_64-y

Error 3

Checking for BZIP2 in default path ... not found
Configure:error:Please Reinstall the BZIP2 distribution

BZIP2 package is not installed

Solutions

Yum Install Bzip2-devel.x86_64-y

Error 4

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

Curl and Curl library files are not installed

Solutions

Yum Install libcurl.x86_64 libcurl-devel.x86_64-y

Error 5

Checking whether to enable jis-mapped Japanese font support in GD ... No
Checking for FABSF ... yes
Checking for Floorf ... yes
Configure:error:jpeglib.h not found

GD Library is not installed

Solutions

Yum install libjpeg.x86_64 libpng.x86_64 freetype.x86_64 libjpeg-devel.x86_64 libpng-devel.x86_64 freetype-devel.x86_ 64-y

Error 6

Checking for stdarg.h ... (cached) Yes
Checking for MCrypt support ... yes
Configure:error:mcrypt.h not found. Please reinstall Libmcrypt.

Libmcrypt Library is not installed, if you can not install with yum, you should download a GZ package to build the installation

(Compile and install./configure--piefix=/usr/local/libmcrypt make && make install)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error7
If the error contains MySQL, that's mysql-devel not installed.
Configure:error:Cannot Find LDAP Libraries In/usr/lib

Workaround:

cp-frp/usr/lib64/libldap*/usr/lib/

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.