Ubuntu 18.04 编译php7.1.31报错 Configure: Error: CURL Version 7.10.5 or Later Is Required to Compile Php With CURL Support

Ubuntu 18.04 编译php7.1.31报错 configure: error: cURL version 7.10.5 or later is required to compile php with cURL support

在 Ubuntu 18.04 编译php7.1.31报错 configure: error: cURL version 7.10.5 or later is required to compile php with cURL support. 主要原因是Ubuntu 18.04升级了libcurl的版本,从libcurl3升级到了libcurl4. 解决这个问题可以:

1
$ sudo apt-get install libcurl4-gnutls-dev

该扩展能够兼容curl3

0%