有谁知道为什么当我尝试将 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$
有人知道吗?
干杯,马克