2012-12-07 8 views
5

PHPUnit_Invoker를 설치하려고합니다. 명령 줄에 pear install phpunit/PHP_Invoker 명령을 실행합니다. 나는이 메시지를 받고 있습니다 : 패키지 "pear.phpunit.de/PHP_Invoker"나는 이미 Windows 시스템에서 phpunit을하고 PEAR 설치 한Windows 7에 PHPUnit_Invoker를 설치할 수 없습니다.

사용할 수

없음 릴리스. 누구도 비슷한 문제에 직면 해 있습니까?

내가 다시 시도하고 내가 콘솔에서이 메시지가 :

phpunit을/PHP_Invoker은 PHP 확장 "pcntl"를 필요로 유효한 패키지 설치를 찾을 수 없습니다 실패

+0

을해야/PHP_Invoker은 PHP 확장을 필요로 "pcntl" 유효한 패키지가 없습니다. 설치가 실패했습니다. ' – user1388835

답변

6

PHP 확장자 "PCNTL"(프로세스 제어)은 PHP_Invoker에서 필요하며 현재 Unix 이외의 플랫폼 (Windows)에서는 작동하지 않습니다.

자료 : http://www.php.net/manual/en/pcntl.installation.php (2013 년 1 월 31 일)

+0

왜 내 대답을 받아 들일 수 없습니까? Sebastian Bergman에 따르면 : "PHP_Invoker는 PHPUnit의 선택적 종속성이며, PHP_Invoker (또는 종속성 ext/pcntl)가 설치되지 않은 경우 PHP_Invoker에 의존하는 PHPUnit의 기능을 사용할 수 없습니다." 출처 : https://github.com/sebastianbergmann/php-invoker/issues/6 php.net은 여전히 ​​다음과 같이 씁니다. "현재이 모듈 [Process Control (pcntl)]은 Unix 이외의 플랫폼에서는 작동하지 않습니다. Windows). " 출처 : http://www.php.net/manual/en/pcntl.installation.php –

3

시도 :

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

동일한 문제가 있었지만 Windows 7에서 WAMP와 함께 설치 한 것 같습니다

+2

** - 1 **. 이것은 PHPUnit 설치이며 PHP_Invoke가 아닙니다. – Dusan

1

'힘'내가 다시 시도하고 난 console.'phpunit에서이 메시지가 오늘 지금 작업

pear install --alldeps --force phpunit/PHPUnit 
관련 문제