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版本过低。请问怎么升级

阅读 9.1k
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:

sudo apt-get install libcurl4-gnutls-dev

Or CentOS:

sudo yum install curl-devel

Then you can just do:

./configure --with-curl # other options...

If you compile cURL manually, you can specify the path to the files without theliborincludesuffix. (e.g.:/usr/localif cURL headers are in/usr/local/include/curl).

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题