首页 > 解决方案 > 编译php7.2时出现curl版本错误

问题描述

我正在尝试使用 openlitespeed 管理面板编译 php7.2。我被错误困住了

checking for cURL support... yes
checking for libcurl.pc... using default path
checking for cURL 7.10.5 or greater... configure: error: cURL version 7.10.5 or later is required to compile php with cURL support
**ERROR** Could not configure PHP build

我检查了 curl 版本curl -V的完整输出

curl 7.58.0 (x86_64-pc-linux-gnu) libcurl/7.58.0 OpenSSL/1.1.0gzlib/1.2.11libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3
Release-Date: 2018-01-24
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 
pop3s rtmp rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL

现有phpinfo();页面也显示 cURL7.58.0

以前我已经成功编译了php7.1。

标签: phpphp-7.2litespeed

解决方案


推荐阅读