微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

php – 在xubuntu中安装pecl_http

根据标题,我只是试图在ubuntu中安装PHP的pecl_http扩展名.

所以我做了最有意义的事情:

andreas@earl ~ $sudo pecl install pecl_http
downloading pecl_http-1.6.6.tgz ...
Starting to download pecl_http-1.6.6.tgz (173,645 bytes)
.....................................done: 173,645 bytes
71 source files,building
running: PHPize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
 1. whether to enable cURL HTTP requests; specify libcurl directory : yes

1-1,'all','abort',or Enter to continue: 
 1. whether to enable support for gzencoded/deflated message bodies; specify zlib directory : yes

1-1,or Enter to continue: 
 1. whether to enable response content type guessing; specify libmagic directory : no

1-1,or Enter to continue: 
 1. whether to depend on extensions which have been built shared : yes

1-1,or Enter to continue: 
building in /var/tmp/pear-build-root/pecl_http-1.6.6
running: /tmp/pear/temp/pecl_http/configure --with-http-curl-requests --with-http-zlib-compression --with-http-magic-mime=no --with-http-shared-deps

checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc

.... <snip>

checking for unistd.h... (cached) yes
checking for gethostname... yes
checking for getdomainname... yes
checking for getservbyport... yes
checking for getservbyname... yes
checking for zlib.h... found in /usr
checking for zlib version >= 1.2.0.4... 1.2.3.3
checking for curl/curl.h... not found
configure: error: Could not find curl/curl.h
ERROR: `/tmp/pear/temp/pecl_http/configure --with-http-curl-requests --with-http-zlib-compression --with-http-magic-mime=no --with-http-shared-deps' Failed

好的,我没有系统卷曲,所以我做

andreas@earl ~ $sudo apt-get install PHP5-curl

卷曲安装好了,所以我再次尝试安装PHP5-http,但仍然是一样的错误.

有人可以分享一下吗?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐