Trying to install latest version of laravel 6 without success
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for laravel/installer ^2.2 -> satisfiable by laravel/installer[v2.2.0].
- laravel/installer v2.2.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
Checking composer version: OK
Composer version: 1.9.0
PHP version: 7.3.8
PHP binary path: /usr/bin/php
Quote: "the requested PHP extension zip is missing from your system."
Solution: Install the php-zip extension and it will work.
By the way, there are other ways to request support if you are having trouble setting it up. This is actually only for bugs inside of laravel.
@rimace Thank you for your reply, I have no clue how to install this zip
extension on macOS, all the resources I find are about ubuntu or centOS
@colorado-kid This is zip for PHP. How did you install PHP? If it's brew, try this? brew install [email protected]
I did not install any PHP, macOS Catalina comes with the latest PHP version: 7.3.8, for some reasons the zip
extension is not isntalled (should be) or needs to be activated (don't know how) since when I execute php --ini
the php.ini file says (none)
Ah then; sudo pecl install zip
. May or may not need sudo. I always install via brew.
I'd recommend using Laravel Valet on MacOS if you aren't familiar with setting up PHP development environments
@alec-joy I can't even install Valet without this extension since it's required.
But I'll try @bbashy 's solution and see what it returns.
Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:
However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.
I am facing the same issue. Since upgraded to catalina I am unable to install zip extension. Any help would be much appreciated as i have been trying to resolve this for over 9 hours and still cannot find any helpful discussion online.
Thank You
@IstvanLovas what error message are you getting when trying to install the zip extension?
@IstvanLovas I had to reinstall my MacBook and when I did so I got the most recent version of PHP (7.3.9). To solve your error all what you need to do is a brew search php
and take really the last one, yesterday I installed the newest 7.4 version php and worked like a charm. Please let me know
I was getting the laravel/installer v3.0.1 requires ext-zip error message than I was simply unable to install the zip extension. Finally I have managed to resolve it by
brew install [email protected]
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.zshrc
and reloding the cli.
Nope, I will not work with PHP 7.3
, I'd really recommend to install the 7.4
version and retry.
I have purchased a MacBook 16 and I can't install laravel via Composer.
Problem 1
- laravel/installer v3.0.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- laravel/installer v3.0.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- Installation request for laravel/installer ^3.0 -> satisfiable by laravel/installer[v3.0.0, v3.0.1].
@Hujjat As I said before install PHP 7.4
Via Homebrew it will automatically give you the necessary extension, you鈥檒l just need to put it in you .bashrc or .zshrc environment path like the installer will tell you to do.
Laravel Documentation is not helpful for the setup! could not install Laravel/Installer
Laravel Documentation is not helpful for the setup! could not install Laravel/Installer
@Pushkarjk Have you installed the latest version of PHP ? What does the error say exactly ?
I was getting the laravel/installer v3.0.1 requires ext-zip error message than I was simply unable to install the zip extension. Finally I have managed to resolve it by
brew install [email protected]
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.zshrc
and reloding the cli.
That fixed it for me
Laravel Documentation is not helpful for the setup! could not install Laravel/Installer
@Pushkarjk Have you installed the latest version of PHP ? What does the error say exactly ?
@rustx5 @Hujjat
Yeah I have the latest php
Composer global require Laravel/Installer Did not work
These are the errors!
Problem 1
- Conclusion: don't install laravel/installer v3.0.1
- Conclusion: remove symfony/console v3.4.35
- Installation request for laravel/installer ^3.0 -> satisfiable by laravel/installer[v3.0.0, v3.0.1].
- Conclusion: don't install symfony/console v3.4.35
- laravel/installer v3.0.0 requires symfony/console ^4.0|^5.0 -> satisfiable by symfony/console[v4.0.0, v4.0.1, v4.0.10, v4.0.11, v4.0.12, v4.0.13, v4.0.14, v4.0.15, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9, v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9, v4.2.0, v4.2.1, v4.2.10, v4.2.11, v4.2.12, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7, v4.2.8, v4.2.9, v4.3.0, v4.3.1, v4.3.2, v4.3.3, v4.3.4, v4.3.5, v4.3.6, v4.3.7, v4.3.8, v4.3.9, v4.4.0, v4.4.1, v5.0.0, v5.0.1].
- Can only install one of: symfony/console[v4.0.0, v3.4.35].
Anyways, I directly gave, composer create-project laravel/laravel projectname
This worked perfectly on MacOS catalina 10.15.1!
Those aren't errors that would be covered in the docs. You have to make sure your dependencies are met when installing any package.
Nope, I will not work with
PHP 7.3
, I'd really recommend to install the7.4
version and retry.
That fixed it for me thanks @rust-rs
brew install [email protected]
composer global require laravel/installer
_WORK_
All of these answers presume your willing to 1 install homebrew and 2 have php installed twice, is there no solution to using the built in version ?
Laravel 6x
Mac os terminal
brew install [email protected] composer global require laravel/installer
_WORK_
this is work not PHP 7.3, php 7.4 working fine
All of these answers presume your willing to 1 install homebrew and 2 have php installed twice, is there no solution to using the built in version ?
macOS built in php version does not have all you need for development like XDebug, Zip etc. So the short answer is: Don鈥檛 use it, instead use one of the following:
Unfortunately the built in php version in any macOS is not suitable for the most development cases specially Laravel.
for me it just did not work after brew install, because I did not restart the cli.
It works! 馃敟Look at this
Laravel Documentation is not helpful for the setup! could not install Laravel/Installer
Here you go: https://www.yogeshchauhan.com/307/php/how-to-install-php-laravel-in-macos-catalina
I've created step by step guide.
Why everyone want a Composer install ? why can't you _just clone this github Repo of Laravel_ ?
Why everyone want a Composer install ? why can't you _just clone this github Repo of Laravel_ ?
Because dependency management is important, and if you clone this exact repository you're going to have to do all the work of scaffolding an actual application (as seen in https://github.com/laravel/laravel) by yourself.
Laravel Documentation is not helpful for the setup! could not install Laravel/Installer
@Pushkarjk Have you installed the latest version of PHP ? What does the error say exactly ?
@rustx5 @Hujjat
Yeah I have the latest php
Composer global require Laravel/Installer Did not workThese are the errors!
Problem 1
- Conclusion: don't install laravel/installer v3.0.1
- Conclusion: remove symfony/console v3.4.35
- Installation request for laravel/installer ^3.0 -> satisfiable by laravel/installer[v3.0.0, v3.0.1].
- Conclusion: don't install symfony/console v3.4.35
- laravel/installer v3.0.0 requires symfony/console ^4.0|^5.0 -> satisfiable by symfony/console[v4.0.0, v4.0.1, v4.0.10, v4.0.11, v4.0.12, v4.0.13, v4.0.14, v4.0.15, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9, v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9, v4.2.0, v4.2.1, v4.2.10, v4.2.11, v4.2.12, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7, v4.2.8, v4.2.9, v4.3.0, v4.3.1, v4.3.2, v4.3.3, v4.3.4, v4.3.5, v4.3.6, v4.3.7, v4.3.8, v4.3.9, v4.4.0, v4.4.1, v5.0.0, v5.0.1].
- Can only install one of: symfony/console[v4.0.0, v3.4.35].
Anyways, I directly gave, composer create-project laravel/laravel projectname
This worked perfectly on MacOS catalina 10.15.1!
I still run into the same issue currently
Hey everyone,
I'm locking this issue because it either has gone off-topic, become a dumping ground for things which shouldn't be in an issue tracker or is just too old. Please try to discuss things further on one of the below channels:
Most helpful comment
I was getting the laravel/installer v3.0.1 requires ext-zip error message than I was simply unable to install the zip extension. Finally I have managed to resolve it by
brew install [email protected]
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.zshrc
and reloding the cli.