Hi,
I've installed a new Laravel with XAMPP 7.1.9 (PHP 7.1.9) and get following error. 'Could not find package laravel/horizon at any version matching your PHP version 7.0.9.0'
How I can get Laravel Horizion if phpinfo says too that I have PHP Version 7.1.9?
check the php version of your php-cli .. the one in phpinfo() is the one for php-fpm.
I'm not familiar with XAMPP to give more details, sorry :)
the composer was guilty due to an older version of xampp (windows) but now horizon wants to have something different.
Problem 1
- laravel/horizon v1.0.4 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.0.3 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.0.2 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.0.1 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.0.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- Installation request for laravel/horizon ^1.0 -> satisfiable by laravel/horizon[v1.0.0, v1.0.1, v1.0.2, v1.0.3, v1.0.4].
pcntl extension is not supported on Windows. (based on your XAMPP information)
if i understand it right then is horizon not usable on windows? i mean i'm not really interesting to change my whole development environment just for a test of horizon and in case of a good usabilty for me, to expand horizon on different development domains
Okay, the only solution I see with this for now is moving the whole team to Mac or Ubuntu. lol 馃檮
驴Why not trying use php, apache/nginx, MySQL stack (not MAMP/XAMPP)?
If you're developing on windows just use a vm. Laravel Homestead is a simple solution here.
Same issue on Google Cloud VM (Debian 9, PHP-FPM 7.0.19)
you can solve it by using composer with this command
$composer install --ignore-platform-reqs ext-pcntl ext-posix
else
composer install --ignore-platform-reqs
Same issue here on windows.
I don't think that change all my environment because of a php extension is not really a good solution...
Solving for now using the @royalabhi17 solution...
@pedrogaldino @ForzaSFerrari on windows 10 you can try the Ubuntu app from the windows app store.
It will allow you to install horizon and you can run it from there.
Closing this in favor of https://github.com/laravel/horizon/issues/170#issuecomment-433040421
I think it's sad that we can't work on Windows with Horizon just because of an extension...
I have worked with Homestead before, but it's 10 times slower than for example XAMPP.
Most helpful comment
you can solve it by using composer with this command
$composer install --ignore-platform-reqs ext-pcntl ext-posix
else
composer install --ignore-platform-reqs