错误一:

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: libxml2 not found. Please check your libxml2 installation.
$ rpm -qa |grep libxml2
libxml2-2.9.1-6.el7_2.3.x86_64
$ sudo yum install libxml2-devel -y

错误三:

configure: error: Cannot find OpenSSL's <evp.h>
$ sudo yum install openssl openssl-devel
$ ll /usr/lib64/libssl.so
lrwxrwxrwx 1 root root 16 Dec 15 10:13 /usr/lib64/libssl.so -> libssl.so.1.0.2k

错误四:

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编译时出现错误示例

转载于:https://blog.51cto.com/13581826/2316136

相关文章:

  • 2021-12-31
  • 2022-01-07
  • 2021-07-13
  • 2022-12-23
  • 2021-12-12
  • 2021-12-31
  • 2021-12-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-06-26
  • 2022-12-23
  • 2021-12-12
相关资源
相似解决方案