1 The first is to adhere to LIBXML2 problems, the following tips:
Checking for Xml2-config path .../home/www/thirdlib/libxml2/bin/xml2-config
Checking whether Libxml build works ... no
Configure:error:build test failed. Please check the Config.log for details.
Resolved as follows:
Shell > Yum-y Install Libxml2-devel
Change the--WITH-LIBXML-DIR=/HOME/WWW/THIRDLIB/LIBXML2 in the installation command to--WITH-LIBXML-DIR=/USR because the Libxml2-devel is installed in the/user by default.
2 No XPM installed, reinstall Yum-y Install ....
3 error configure:error:freetype.h not found.
Yum Install Freetype-devel
The following is the installation command line
./configure--prefix=/home/www/php
--with-config-file-path=/home/www/php/etc
--with-mysql=/home/www/mysql
--with-mysqli=/home/www/mysql/bin/mysql_config
--with-zlib=/home/www/thirdlib/zlib
--WITH-LIBXML-DIR=/USR--with-pcre-dir=/home/www/thirdlib/pcre
--with-jpeg-dir=/home/www/thirdlib/jpeg
--with-png-dir=/home/www/thirdlib/libpng
--with-freetype-dir=/home/www/thirdlib/freetype
--with-gd=/home/www/thirdlib/gd2
--with-openssl=/home/www/thirdlib/openssl
--with-mcrypt=/home/www/thirdlib/libmcrypt
--with-mhash=/home/www/thirdlib/mhash
--with-xpm-dir=/usr/lib64
--enable-fpm
--enable-mbstring
--enable-xml
--enable-soap
--enable-sockets
--enable-zip
--without-sqlite3
--without-pear
--without-pdo-sqlite
--without-cdb
Final installation Successful command line:
./configure--prefix=/home/www/php--with-config-file-path=/home/www/php/etc--with-mysql=/home/www/mysql-- With-mysqli=/home/www/mysql/bin/mysql_config--with-zlib=/home/www/thirdlib/zlib--WITH-LIBXML-DIR=/USR-- With-pcre-dir=/home/www/thirdlib/pcre--with-jpeg-dir=/home/www/thirdlib/jpeg--with-png-dir=/home/www/thirdlib/ Libpng--with-freetype-dir=/home/www/thirdlib/freetype--with-gd=/home/www/thirdlib/gd2--with-openssl=/home/www/ Thirdlib/openssl--with-mcrypt=/home/www/thirdlib/libmcrypt--with-mhash=/home/www/thirdlib/mhash--with-xpm-dir= /usr/lib64--enable-fpm--enable-mbstring--enable-xml--enable-soap--enable-sockets--enable-zip--without-sqlite3- -without-pear--without-pdo-sqlite--without-cdb
4 Installing the Extension Library curl hint no autoconf, yum install autoconf after resolving
5 Installing the Curl extension
A separate section discusses
6 Installing SSH2
Yum Install Libssh2-devel
./configure--with-php-config=/home/www/php/bin/php-config
Phpize ...
CentOS 6.5 Web Service mode system installation PHP