How can I solve “laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system”?

后端 未结 10 1003
抹茶落季
抹茶落季 2021-01-30 04:07

When I run composer install on command promp, there exist error like this :

  Problem 1
    - Installation request for laravel/horizon v1.1.0 ->         


        
10条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-30 04:51

    If you are using docker based on a Unix image you can add it with the docker utility:

    docker-php-ext-install pcntl
    

    You can then confirm that this extension is installed and enabled inside of your container:

    ?> php -i | grep pcntl
    /usr/local/etc/php/conf.d/docker-php-ext-pcntl.ini,
    pcntl
    pcntl support => enabled
    

提交回复
热议问题