ubuntu16.04 php7.2 install curl error

Posted Flybeta

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu16.04 php7.2 install curl error相关的知识,希望对你有一定的参考价值。

编译安装php时遇到如下错误:

checking for cURL 7.15.5 or greater... configure: error: cURL version 7.15.5 or later is required to compile php with cURL support

解决办法:

试试安装 libcurl4-openssl-dev 应该就可以通过。

sudo apt-get install \\
build-essential \\
gcc \\
g++ \\
autoconf \\
libiconv-hook-dev \\
libmcrypt-dev \\
libxml2-dev \\
libmysqlclient-dev \\
libcurl4-openssl-dev \\
libjpeg8-dev \\
libpng12-dev \\
libfreetype6-dev \\

以上是关于ubuntu16.04 php7.2 install curl error的主要内容,如果未能解决你的问题,请参考以下文章