安装pecl_http失败
问题描述:
我使用Ubuntu 14安装pecl_http失败
当我执行以下命令:
sudo pecl install pecl_http
我有以下错误:
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading pecl_http-2.4.3.tgz ...
Starting to download pecl_http-2.4.3.tgz (188,540 bytes)
.........................................done: 188,540 bytes
could not extract the package.xml file from "/build/buildd/php5-5.5.9+dfsg/pear-build-download/pecl_http-2.4.3.tgz"
Download of "pecl/pecl_http" succeeded, but it is not a valid package archive
Error: cannot download "pecl/pecl_http"
downloading raphf-1.0.4.tgz ...
Starting to download raphf-1.0.4.tgz (7,232 bytes)
...done: 7,232 bytes
could not extract the package.xml file from "/build/buildd/php5-5.5.9+dfsg/pear-build-download/raphf-1.0.4.tgz"
Download of "pecl/raphf" succeeded, but it is not a valid package archive
Error: cannot download "pecl/raphf"
downloading propro-1.0.0.tgz ...
Starting to download propro-1.0.0.tgz (6,217 bytes)
...done: 6,217 bytes
could not extract the package.xml file from "/build/buildd/php5-5.5.9+dfsg/pear-build-download/propro-1.0.0.tgz"
Download of "pecl/propro" succeeded, but it is not a valid package archive
Error: cannot download "pecl/propro"
Download failed
install failed
你能帮助我吗?
答
解决此问题。 我的SE Ubuntu是32位的。 所以我在64位操作系统通过
运行sudo的PECL通道更新按警告并包将正确地提取 – detheridge02
但是,当我执行以下命令:sudo的PECL通道更新 我有以下错误:无法打开pecl_http – Zyo
确定做下面的一个命令(*格式导致问题!) sudo pecl channel-update; sudo pecl install pecl_http – detheridge02