First, compile and install PHP Common error Summary and solutions
Error 1
Checking for Xml2-config path ...
Configure:error:xml2-config not found. Please check your LIBXML2 installation.
Workaround :
# yum-y Install Libxml2-devel
Error 2
Checking for BZIP2 in default path ... not found
Configure:error:Please Reinstall the BZIP2 distribution
Workaround:
# yum Install-y bzip2-devel
Error 3
If Configure fails try–with-vpx-dir=
Configure:error:png.h not found.
Workaround:
# yum-y Install Libpng-devel
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.
workaround : Install 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