Shuvo Ahmed
Shuvo Ahmed

Reputation: 59

how to solve laravel/horizon v4.3.3 requires ext-pcntl problem

I'm using Windows operating system. I've also tried with these solutions available here: link 1) PHP pcntl module installation link 2) How to install PCNTL extension in Windows?

./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - laravel/horizon v4.3.3 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
    - laravel/horizon v4.3.2 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
    - laravel/horizon v4.3.1 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
    - laravel/horizon v4.3.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
    - laravel/horizon 4.x-dev requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
    - Installation request for laravel/horizon ^4.3 -> satisfiable by laravel/horizon[4.x-dev, v4.3.0, v4.3.1, v4.3.2, v4.3.3].

  To enable extensions, verify that they are enabled in your .ini files:
    - C:\laragon\bin\php\php-7.2.11-Win32-VC15-x64\php.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Upvotes: 3

Views: 2919

Answers (2)

Abu Noman Md Sakib
Abu Noman Md Sakib

Reputation: 352

Add the following code segment in your composer.json file.

"config": {
   "platform": {
      "ext-pcntl": "8.0",
      "ext-posix": "8.0"
   }
 }

I was facing the exact same problem. This worked like a charm for me.

Upvotes: 0

Mohammed Shabeer k
Mohammed Shabeer k

Reputation: 287

"platform": { "ext-posix": "8.2", "ext-pcntl": "8.2" },

Upvotes: 0

Related Questions