PHP 7.1.2 là ở đây, tôi đã cố gắng để biên dịch nó như thường nhưng lần này ./configure thất bại với những lỗi:PHP 7.1.2 biên soạn và libcurl lỗi
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/
Tôi đang trên Debian Stretch (9).
tôi thấy libcurl4-openssl-dev
được cài đặt trong/usr/include/x86_64-linux-gnu/curl when
./configure expect it in
/include/curl/`
libcurl4-openssl-dev trên debian Jessie cài đặt curl trong/usr/include/curl/khi Stretch install curl trong/usr/include/x86_64-linux-gnu/curl.
Với phiên bản PHP cuối cùng tôi đã biên soạn (7.1.1), tôi không gặp vấn đề gì, nhưng lần này không thành công.
Để biên dịch:
./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
curl
và libcurl4-openssl-dev
gói được cài đặt
Tôi đã thử với --with-curl =/usr/include/x86_64-linux-gnu/curl/nhưng nó doesn' t làm việc.
Tôi không biết cách giải quyết vấn đề này, ai đó có thể biết được không?
xem xét kỹ hơn tệp 'config.log' sau khi không nhận được chi tiết cụ thể hơn về kiểm tra không thành công –