【发布时间】:2015-06-24 00:43:48
【问题描述】:
我使用 Ubuntu 14
当我执行以下命令时:
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
你能帮帮我吗?
【问题讨论】:
-
根据警告运行 sudo pecl channel-update 包会正确解压
-
但是当我执行时:sudo pecl channel-update 我有以下错误:无法打开 pecl_http
-
ok 作为一个命令执行以下操作(Stackoverflow 格式导致问题!) sudo pecl channel-update; sudo pecl install pecl_http
-
对不起,我执行了命令但还是出现同样的错误
-
我也执行:sudo pecl channel-update pecl.php.net,我得到了响应:更新频道“pecl.php.net”更新频道“pecl.php.net”成功,但是当我执行 sudo pecl install pecl_http 我有同样的错误