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