PHP source code compilation detailed

Source: Internet
Author: User

Compiling PHP Package: php-5.4.26.tar.bz2

After extracting the php-5.4.26.tar.bz2, enter the PHP unzip directory:

./configure--prefix=/usr/local/php--enable-fpm--enable-debug--with-gd--with-jpeg-dir--with-png-dir-- With-freetype-dir--enable-mbstring--with-curl--with-mysql=/usr/local/mysql/--with-mysqli=/usr/local/mysql/bin/ Mysql_config--with-config-file-path=/usr/local/php/etc

Problems encountered after running:

Error 1

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

(See tips to understand is a 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- y

Error 2

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

This is SSL not installed

Solutions

Yum install Openssl-devel. x86_64- y

Error 3

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

This is the 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-devel.x86_64 libpng-devel.x86_64 freetype-devel.x86_64-y


PHP source code compilation detailed

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.