Possible Duplicate:
Installing PHPUnit via PEAR不能通过梨安装PHPUnit
的安装PHPUnit的指令运行以下命令:
pear channel-discover pear.phpunit.de
pear install phpunit/PHPUnit
第一个进入还好,第二我得到一个错误:
phpunit/PHPUnit requires PEAR Installer (version >= 1.8.1), installed version is 1.7.2
phpunit/PHPUnit can optionally use package "pear/Image_GraphViz" (version >= 1.2.1)
phpunit/PHPUnit can optionally use package "pear/Log"
phpunit/PHPUnit can optionally use PHP extension "xdebug" (version >= 2.0.5)
No valid packages found
install failed
我刚刚从php.net(php 5.3.0) 同时使用最新的go-pear.phar版本安装了梨也尝试运行php go-pear.php
as pear web网站说。
运行pear -V
给我的版本1.7.2,当我运行pear upgrade PEAR
它说我的版本比当前NOE这是1.9.0更新,如果跑pear upgrade -f PEAR
给力的升级,它下载的文件和成功,但我安装还有版本1.7.2,不能安装phpunit。
我运行Windows Vista,PHP 5.3.0
恭喜你。 :) – Till 2009-09-19 14:46:00