php5.6.22编译过程中常见错误及解决办法
php5.6.22使用的编译参数如下:
./configure --prefix=/usr/local/php --enable-fpm --with-mcrypt --enable-mbstring --disable-pdo --with-curl --disable-debug --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-mysqli --with-gd --with-jpeg-dir
编译过程中常见的编译错误及解决办法:
configure error xml2-config not found. please check your libxml2 installation
解决: yum install libxml2
yum install libxml2-devel -y
configure: error: Please reinstall the BZip2 distribution
解决:yum install bzip2-devel
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
解决: yum -y install curl-devel
If configure fails try --with-vpx-dir=<DIR>
configure: error: jpeglib.h not found.
解决: yum install libjpeg-devel
If configure fails try --with-vpx-dir=<DIR>
checking for jpeg_read_header in -ljpeg... yes
configure: error: png.h not found.
解决:yum install libpng-devel
checking for mcrypt support... yes
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
解决:yum install libmcrypt libmcrypt-devel
评论