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