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 \

你可能感兴趣的:(Linux,PHP)