First, Compiling the installation Summary of common errors in PHP and Solutions
Error 1
Checking for xml2-config path ...
configure:error:xml2-config not found. Please check your LIBXML2 installation.
Solutions:
# yum-y Install Libxml2-devel
error 2
checking for BZIP2 in default Path ... not found
configure:error: Please reinstall the BZIP2 distribution
solution: Span style= "font-family: ' The song Body '; Color:rgb (64,64,64); letter-spacing:0;font-size:14px;" >
error 3
if Configure fails try–with-vpx-dir=
configure: Error:png.h not found.
workaround:
error 4
if Configure fails try–with-xpm-dir=
configure: Error:freetype.h not found.
Workaround:
# yum-y Install Freetype-devel
Error 5
Checking for specified location of the MySQL UNIX socket ... no
configure:error:Cannot Find MySQL header files Under/usr/local/mysql.
Note that the MySQL client library isn't bundled anymore!
Workaround:
Install MySQL
Error 6
Configure:error:mcrypt.h not found. Please reinstall Libmcrypt.
Solutions: Installing Libmcrypt
wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz
TAR-ZXVF libmcrypt-2.5.7.tar.gz
CD libmcrypt-2.5.7
mkdir-p/USR/LOCAL/LIBMCRYTP
./configure prefix=/usr/local/libmcrytp/
Make
Make Install
Linux Compile install PHP and compile install MySQL common error summary and solution