php 在 debian 上安装 pecl
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/29531277/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Installing pecl on debian
提问by Sergey Scopin
I'm trying to instal pecl_http on my server according to manualmanual is for ubuntu, but apt-cache search pecl_http
returned php5-pecl-http
as pecl http packadge:
我正在尝试根据ubuntu 的手册在我的服务器上安装 pecl_http ,但作为 pecl http 包apt-cache search pecl_http
返回php5-pecl-http
:
sudo apt-get update
sudo apt-get install php-pear php5-dev
sudo apt-get install php5-pecl-http
sudo apt-get install libcurl3-openssl-dev
in the end of php.ini
added extension=http.so
.
http_get()
and func that I need http_parse_headers()
says that func is undefined. What's the problem?
在最后php.ini
补充extension=http.so
。
http_get()
我需要的http_parse_headers()
func 表示 func 未定义。有什么问题?
回答by gaelle3182
It's probably too late but for others a solution is explained here : http://www.mkfoster.com/2009/01/04/how-to-install-a-php-pecl-extensionmodule-on-ubuntu/
这可能为时已晚,但对于其他人来说,这里解释了一个解决方案:http: //www.mkfoster.com/2009/01/04/how-to-install-a-php-pecl-extensionmodule-on-ubuntu/
sudo apt-get update
sudo apt-get install php-pear php5-dev
sudo apt-get install libcurl3-openssl-dev
Then,
然后,
sudo pecl install pecl_http