[root@localhost php-5.6.30]# ./configure --prefix=/usr/local/php-fpm --with-config-file-path=/usr/local/php-fpm/etc --enable-fpm --with-fpm-user=php-fpm --with-fpm-group=php-fpm --with-mysql=/usr/local/mysql --with-mysqli=usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/locql/mysql --with-fpm-sock=/tmp/mysql.sock --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-mcrypt --enable-soap --enable-gd-native-ttf --enable-ftp --enable-mbstring --enable-exif --with-pear --with-curl --with-openssl
configure: error: xml2-config not found. Please check your libxml2 installation.[root@localhost php-5.6.30]# yum install -y libxml2-devel
configure: error: Cannot find OpenSSL's[root@localhost php-5.6.30]# yum install -y openssl-devel
configure: error: Please reinstall the libcurl distribution - easy.h should be in/include/curl/[root@localhost php-5.6.30]# yum install -y curl-devel
If configure fails try --with-vpx-dir=configure: error: jpeglib.h not found.[root@localhost php-5.6.30]# yum install -y libjpeg-devel
configure: error: png.h not found.[root@localhost php-5.6.30]# yum install -y libpng-devel
If configure fails try --with-xpm-dir=configure: error: freetype-config not found.[root@localhost php-5.6.30]# yum install -y freetype-devel
configure: error: mcrypt.h not found. Please reinstall libmcrypt.[root@localhost php-5.6.30]# yum install -y epel-release[root@localhost php-5.6.30]# yum install -y libmcrypt-devel
configure: error: Please reinstall the mysql distribution这里我原来将路径搞错了,正确是--with-mysqli=/usr/local/mysql/bin/mysql_config