pcntl php windows_如何在Windows中安装PCNTL扩展?
I am running PHPUnit in Windows and trying to install PHPUnit via composer.json:"phpunit/php-invoker": "*"...with this dependency, but I am getting this error:phpunit/php-invoker 1.1.3 requires ext-pc
I am running PHPUnit in Windows and trying to install PHPUnit via composer.json:
"phpunit/php-invoker": "*"
...with this dependency, but I am getting this error:
phpunit/php-invoker 1.1.3 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
How can I install this extenstion?
解决方案
You can't install ext-pcntl extension on Windows. Accordingly to the PHP documentation:
Currently, this module will not function on non-Unix platforms
(Windows).
If you want to install PHPUnit all you need is the PHPUnit library:
composer require phpunit/phpunit 4.*
You don't need php-invoker to install PUPUnit. But if you also need the php-invoker library you are out of luck. Try using Vagrant or a plain VM with Linux distributions like Ubuntu, Debian or Mint.
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)