安装FirePHPCore时出错

时间:2014-06-02 20:02:30

标签: pear ubuntu-14.04 firephp

我正在彻底安装Ubuntu 14.04 LTS并且由于错误而无法安装firephp:

#pear install firephp/FirePHPCore

downloading FirePHPCore-0.3.2.tgz ...
Starting to download FirePHPCore-0.3.2.tgz (25,019 bytes)
.........done: 25,019 bytes
could not extract the package.xml file from "/build/buildd/php5-5.5.9+dfsg/pear-build-download/FirePHPCore-0.3.2.tgz"
Download of "firephp/FirePHPCore" succeeded, but it is not a valid package archive
Error: cannot download "firephp/FirePHPCore"
Download failed
install failed

我已经以相同的方式在其他几台服务器上安装了这个,没有任何问题,但它们都在运行Ubuntu 12或更早版本。

有关如何使其正常工作的任何建议吗?

3 个答案:

答案 0 :(得分:2)

使用选项--nocompress

pecl install --nocompress packagename

是唯一一个对我有用的解决方案。

答案 1 :(得分:1)

这对我来说很好:

$ sudo pear install firephp/FirePHPCore
downloading FirePHPCore-0.3.2.tgz ...
Starting to download FirePHPCore-0.3.2.tgz (25,019 bytes)
.........done: 25,019 bytes
install ok: channel://pear.firephp.org/FirePHPCore-0.3.2

您使用的是哪个版本的PEAR?

$ pear version
PEAR Version: 1.9.4
PHP Version: 5.5.3-1ubuntu2.3
Zend Engine Version: 2.5.0

如有必要,您可能需要升级。

答案 2 :(得分:1)

您正在使用PHP 5.5.x在Archive_Tar中遇到错误。

有关如何解决问题,请参阅my blog post