【问题标题】:Installing pecl on debian在 debian 上安装 pecl
【发布时间】:2015-06-14 09:25:21
【问题描述】:

我正在尝试根据 manual 手册在我的服务器上安装 pecl_http 用于 ubuntu,但 apt-cache search pecl_http 返回 php5-pecl-http 作为 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

php.ini 末尾添加extension=http.sohttp_get() 和我需要的 func http_parse_headers() 表示 func 未定义。有什么问题?

【问题讨论】:

    标签: php debian pecl


    【解决方案1】:

    可能为时已晚,但对于其他人来说,这里解释了一个解决方案: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
    

    那么,

    sudo pecl install pecl_http 
    

    【讨论】:

    • 如果您仍然收到来自该帐户的消息:您实际上可以将自己的答案标记为答案(在投票箭头下方带有复选标记)。特别是如果没有其他人回答您的问题,那么这样做是标准的。与社区分享您的研究结果的小奖励。