如何安装ez Components Console Tools

时间:2012-03-22 15:49:39

标签: php zeta-components

由于PEAR试图从“components.ez.no”获取ConsoleTools,这是不再可用的,如何满足“phpcpd”安装的依赖性?

2 个答案:

答案 0 :(得分:2)

暂时没有梨释放。你可以install from svn

您也可以尝试从github安装phpcd,它可能不依赖于ConsoleTools:https://github.com/sebastianbergmann/phpcpd/blob/master/README.markdown

答案 1 :(得分:2)

从SVN安装是500mb下载。如果您不需要整个包,这些命令将起作用,并且要小得多。

我在尝试安装时收到了这个:

$ pear install --alldeps phpunit/PHPUnit_SkeletonGenerator 
Unknown remote channel: components.ez.no
phpunit/PHPUnit_SkeletonGenerator requires package "channel://components.ez.no/ConsoleTools (version >= 1.6)
No valid packages found
install failed

您需要做的就是运行:

$ pecl channel-discover components.ez.no

你应该收到这些成功的消息......     添加频道“components.ez.no”成功     发现频道“components.ez.no”成功

现在命令可以正常工作......

$ pear install --alldeps phpunit/PHPUnit_SkeletonGenerator

我的输出是:

downloading PHPUnit_SkeletonGenerator-1.2.0.tgz ...
Starting to download PHPUnit_SkeletonGenerator-1.2.0.tgz (11,210 bytes)
.....done: 11,210 bytes
downloading ConsoleTools-1.6.1.tgz ...
Starting to download ConsoleTools-1.6.1.tgz (869,994 bytes)
...done: 869,994 bytes
downloading Base-1.8.tgz ...
Starting to download Base-1.8.tgz (236,357 bytes)
...done: 236,357 bytes
install ok: channel://components.ez.no/Base-1.8
install ok: channel://components.ez.no/ConsoleTools-1.6.1
install ok: channel://pear.phpunit.de/PHPUnit_SkeletonGenerator-1.2.0