【发布时间】:2012-02-24 08:29:34
【问题描述】:
我正在尝试设置PHP Plugin for Sonar,这个插件需要特定版本的特定包。
所以,当我尝试使用以下命令安装 PHPUnit 3.5.5 时,它正在安装更新版本。我做错了什么?
[VMWARE] root@localhost ~
# pear install phpunit/PHPUnit-3.5.5
Did not download optional dependencies: phpunit/PHP_Invoker, use --alldeps to download automatically
phpunit/PHPUnit can optionally use PHP extension "dbus"
phpunit/PHPUnit can optionally use PHP extension "soap"
phpunit/DbUnit requires package "phpunit/PHPUnit" (version >= 3.6.0), downloaded version is 3.5.5
phpunit/PHPUnit requires package "phpunit/DbUnit" (version >= 1.0.0)
phpunit/PHPUnit can optionally use package "phpunit/PHP_Invoker" (version >= 1.1.0)
downloading PHPUnit_Selenium-1.2.1.tgz ...
Starting to download PHPUnit_Selenium-1.2.1.tgz (23,083 bytes)
.......done: 23,083 bytes
downloading PHPUnit-3.6.10.tgz ...
Starting to download PHPUnit-3.6.10.tgz (118,595 bytes)
...done: 118,595 bytes
install ok: channel://pear.phpunit.de/PHPUnit-3.6.10
install ok: channel://pear.phpunit.de/PHPUnit_Selenium-1.2.1
[VMWARE] root@localhost ~
【问题讨论】:
-
phpunit/DbUnit需要"phpunit/PHPUnit" (version >= 3.6.0),安装的时候会安装更高版本的。卸载它并告诉 pear 要安装哪个版本的 DBUnit,例如适用于 PHPUnit 3.5.5 的那个。但可能该插件也适用于 PHPUnit 3.6.10,所以这实际上不是任何问题? (先检查一下) -
不,它似乎不适用于 3.6.10.... 我会尝试先安装 dbunit 的建议
-
梨安装 phpunit/DbUnit-1.0.0 phpunit/PHPUnit-3.5.5 phpunit/PHPUnit_Selenium-1.0.1
标签: php maven phpunit pear sonarqube