Symptoms

Typical error message, meaning that PHP ext-zip extension is missing:

laravel/installer v2.0.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.

Fix me

First, get PHP version running on your computer:

php --version

Then, on Ubuntu, just run this command:

# For php v7.0
sudo apt-get install php7.0-zip

# For php v7.1
sudo apt-get install php7.1-zip

# For php v7.2
sudo apt-get install php7.2-zip

On CentOs:

yum install php-pecl-zip

Done! Hope it helps!

Categories: DebugTech

1 Comment

Laurence Tyler · April 26, 2019 at 3:41 pm

I have 3 versions of php installed on my Linux parrot. I’m having issues getting native linux server to work, so Im currently using Lampp which runs on my php7.3, after installing the zip ext as per your directions, I still get error when i run composer install.

Your requirements could not be resolved to an installable set of packages.

Problem 1
– box/spout v2.7.3 requires ext-zip * -> the requested PHP extension zip is missing from your system.

Leave a Reply

Your email address will not be published. Required fields are marked *