ubuntu下编译安装PHP出现 cURL version 7.10.5 or later is required
如题:
编译安装提示如下错误
`
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
`
提示curl版本过低。请问怎么升级
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
None of these will allow you to compile PHP with cURL enabled.
In order to compile with cURL, you need libcurl header files (.h files). They are usually found in
/usr/include/curl
. They generally are bundled in a separate_development_package.Per example, to install libcurl in Ubuntu:
Or CentOS:
Then you can just do:
If you compile cURL manually, you can specify the path to the files without the
lib
orinclude
suffix. (e.g.:/usr/local
if cURL headers are in/usr/local/include/curl
).