有没有人知道为什么当我尝试将PHPUnit安装到我的mac osx 10.8.2时出现此错误?
Unknown remote channel: pear.symfony.com
Did not download optional dependencies: phpunit/PHP_Invoker, use --alldeps to download automatically
phpunit/PHPUnit requires PEAR Installer (version >= 1.9.4), installed version is 1.9.2
phpunit/PHPUnit requires package "channel://pear.symfony.com/Yaml" (version >= 2.1.0, version <= 2.1.99)
phpunit/PHPUnit can optionally use package "phpunit/PHP_Invoker" (version >= 1.1.0, version <= 1.1.99)
No valid packages found
install failed
我已正确安装梨,如下所示:
PEAR Version: 1.9.2
PHP Version: 5.3.6
Zend Engine Version: 2.3.0
Running on: Darwin Macintosh-2.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
另外看看让symfony可以使用它,并说它一切正常:
Macintosh-2:~ mdunbavan$ pear channel-discover pear.symfony-project.com
Channel "pear.symfony-project.com" is already initialized
Macintosh-2:~ mdunbavan$
有没有人有任何想法?
干杯, 标记
答案 0 :(得分:0)
请比较错误:
Unknown remote channel: pear.symfony.com
...与你的修复:
pear channel-discover pear.symfony-project.com
网址不匹配。