php - 在 debian 上安装 pecl

标签 php debian pecl

我正在尝试根据 manual 在我的服务器上安装 pecl_http手册适用于 ubuntu,但 apt-cache search pecl_http 返回 php5-pecl-http 作为 pecl http packadge:

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 是未定义的。有什么问题?

最佳答案

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

关于php - 在 debian 上安装 pecl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29531277/

相关文章:

Java 不会在终端 java.lang.NoClassDefFoundError 中运行程序

php - 在 XAMPP (OS X/El Capitan) 上安装 MongoDB 驱动程序时出错

php - 如何为 php 7.3 安装 ssh2

javascript - 异常 : play() failed because the user didn't interact with the document first

php - 无法在 apache 服务器上加载资源

php - 我如何使这个查询 sql 注入(inject)证明?

linux - 根据日期/时间创建目录并将文件复制到其中?

GitLab 未与 Gitolite 交互

php - 使用 PECL 安装扩展是否会警告我它将进行的任何更改?

php - 为什么 $con 在 funciones.php 中没有值(value)