Can't install laravel installer via composer

前端 未结 14 2021
栀梦
栀梦 2020-11-27 13:04

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

相关标签:
14条回答
  • 2020-11-27 13:05

    For PHP7.1 install this

    sudo apt-get install php7.1-zip
    
    0 讨论(0)
  • 2020-11-27 13:07

    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
    
    0 讨论(0)
  • 2020-11-27 13:08

    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

    0 讨论(0)
  • 2020-11-27 13:09

    For Ubuntu 16.04, I have used this command for PHP7.2 and it worked for me.

    sudo apt-get install php7.2-zip
    
    0 讨论(0)
  • 2020-11-27 13:10

    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

    0 讨论(0)
  • 2020-11-27 13:19

    Centos 7 with PHP7.2:

    sudo yum --enablerepo=remi-php72 install php-pecl-zip
    
    0 讨论(0)
提交回复
热议问题