<分区>
Possible Duplicate:
Installing PHPUnit via PEAR
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 版本安装了 pear
还尝试运行 php go-pear.php
作为 pear 网站说。
运行 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