无法在Windows 7上安装PHPUnit_Invoker

时间:2012-12-07 12:30:27

标签: php phpunit pear

我正在尝试安装PHPUnit_Invoker。我在命令行上运行命令pear install phpunit/PHP_Invoker。我收到了这条消息:

  

没有可用于“pear.phpunit.de/PHP_Invoker”

包的版本

我已经在Windows机器上安装了PHPUnit和PEAR。有人也面临类似的问题吗?

我再次尝试,我在控制台中收到此消息:

  

phpunit / PHP_Invoker需要PHP扩展名“pcntl”找不到有效的软件包安装失败

3 个答案:

答案 0 :(得分:6)

PHP_Invoker所需的PHP扩展“PCNTL”(过程控制)目前在非Unix平台(Windows)上不起作用。

资料来源:http://www.php.net/manual/en/pcntl.installation.php(2013年1月31日)

答案 1 :(得分:3)

尝试:

>pear config-set auto_discover 1
>pear clear-cache
>pear install pear.phpunit.de/PHPUnit

我遇到了同样的问题,但似乎已经在Windows 7上安装了WAMP

答案 2 :(得分:1)

'force'应该完成这项工作

pear install --alldeps --force phpunit/PHPUnit
相关问题