Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install PHPUnit_Invoker on Windows 7

Tags:

php

phpunit

pear

I am trying to install PHPUnit_Invoker. I run the command pear install phpunit/PHP_Invoker on the command line. I am getting this message:

No releases available for package "pear.phpunit.de/PHP_Invoker"

I have already installed PHPUnit and PEAR on a Windows machine. Is anybody also facing similar problem?

I tried again and I get this message in console:

phpunit/PHP_Invoker requires PHP extension "pcntl" No valid packages found install failed

like image 706
user1388835 Avatar asked Dec 07 '12 12:12

user1388835


3 Answers

The PHP extension “PCNTL” (Process Control), required by PHP_Invoker, currently does not function on non-Unix platforms (Windows).

Source: http://www.php.net/manual/en/pcntl.installation.php (Jan 31, 2013)

like image 187
Frederik Krautwald Avatar answered Nov 06 '22 17:11

Frederik Krautwald


Try :

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

I had the same issue but that seem to have installed with WAMP on Windows 7

like image 35
Adrian Avatar answered Nov 06 '22 18:11

Adrian


'force' should do the job

pear install --alldeps --force phpunit/PHPUnit
like image 1
meloniq Avatar answered Nov 06 '22 17:11

meloniq