configure: error: cURL version 7.10.5 or later is required to compile php with cURL support
方法一:
#wget https://curl.haxx.se/download/curl-7.20.0.tar.gz
#tar -xzvf curl-7.20.0.tar.gz
#cd curl-7.20.0
#./configure(如果有错,提示没有c相关的编译器,执行#yum install gcc命令)
#make&&make install
方法二:
php7.0.27以上 curl需要单独安装:
yum -y install curl-devel
就OK啦~
错误二:
configure: error: jpeglib.h not found.
解决办法:
yum -y install libjpeg-devel
错误三:
configure: error: png.h not found.
解决办法:
yum install libpng ?libpng-devel -y
错误四:
configure: error: freetype-config not found.
解决办法:
yum install freetype-devel
错误五:
configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
解决办法:
yum -y install libxslt libxslt-devel
大功告成
编译PHP时出现错误示例
原文地址:http://blog.51cto.com/13581826/2316136