PHP 7.1.2 compilation and libcurl error

PHP 7.1.2 here, I tried to compile it as usual, but this time. / configure fail with this error:

checking cURL on the default path ... not found
configure: error: reinstall the libcurl distribution - easy.h should be in / include / curl /

I'm on Debian Stretch (9).

I found that it is libcurl4-openssl-devinstalled in / usr / include / x 86_64-linux-gnu / curl when./configure expect it in/ include / curl / `

libcurl4-openssl-dev on debian Jessie sets curl to / usr / include / curl / when Stretch sets curl to / usr / include / x 86_64-linux-gnu / curl.

With the latest version of PHP compiled (7.1.1), I had no problems, but this time it failed.

Compile:

./buildconf --force && ./configure --prefix=/usr/local/php --with-config-file-path=/etc/php/lib --enable-bcmath --with-bz2 --with-zlib --enable-zip --enable-calendar --enable-exif --enable-ftp --with-gettext --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-xpm-dir --enable-mbstring --enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-openssl --enable-intl --enable-soap --with-readline --with-curl --with-mcrypt --with-xsl --enable-sockets

curland libcurl4-openssl-devinstalled packages

--with-curl =/usr/include/x86_64-linux-gnu/curl/, .

, , - ?

+6
2

- /usr/local/include/curl, /usr/include/x86_64-linux-gnu/curl PHP --with-curl=/usr/local.

: /usr/local/include root sudo ln -s /usr/include/x86_64-linux-gnu/curl curl.

, , x86_64 .

, libcurl4-gnutls-dev libcurl4-openssl-dev. , PHP, curl, , PHP .

, Debian , - /usr/include/curl, , , , PHP . , --with-curl=/usr/local, , PHP ", ", /include/curl.

+4

libcurl4-gnutls-dev.

( , ), , libcurl.

libcurl4-gnutls-dev:

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

Source: https://habr.com/ru/post/1015067/


All Articles