I\'m trying to install laravel installer with the composer on my Ubuntu PC, but I get this error during the installation. `Your requirements could not be resolved to an inst
For PHP7.1 install this
sudo apt-get install php7.1-zip
For macOs users you can use Homebrew instead :
# For php v7.0
brew install php@7.0
# For php v7.1
brew install php@7.1
# For php v7.2
brew install php@7.2
# For php v7.3
brew install php@7.3
# For php v7.4
brew install php@7.4
I am using WSL with ubuntu 16.04 LTS version with php 7.3 and laravel 5.7
sudo apt-get install php7.3-zip
Work for me
For Ubuntu 16.04
, I have used this command for PHP7.2
and it worked for me.
sudo apt-get install php7.2-zip
zip extension is missing, You can avoid this error by simple running below command, It will take version by default
sudo apt-get install php-zip
In case you need any specific version, You need to mention a specific version of your php, Suppose I need to install X
version of php-zip then the command will be.
sudo apt-get install phpX-zip
Replace X
with your required version, In my case, it is X = 7.3
Centos 7 with PHP7.2:
sudo yum --enablerepo=remi-php72 install php-pecl-zip