Jiten Patel
Jiten Patel

Reputation: 180

Download Laravel Installer error

While using this command I got this error. How can I fix it?

php composer.phar global require "laravel/installer"

Console output:

Changed current directory to /home/jiten-p/.config/composer
Using version ^1.5 for laravel/installer
./composer.json has been created

Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for laravel/installer ^1.5 -> satisfiable by laravel/installer[v1.5.0].


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


  To enable extensions, verify that they are enabled in your .ini files:


    - /etc/php/7.0/cli/php.ini
    - /etc/php/7.0/cli/conf.d/10-opcache.ini
    - /etc/php/7.0/cli/conf.d/10-pdo.ini
    - /etc/php/7.0/cli/conf.d/15-xml.ini
    - /etc/php/7.0/cli/conf.d/20-calendar.ini
    - /etc/php/7.0/cli/conf.d/20-ctype.ini
    - /etc/php/7.0/cli/conf.d/20-dom.ini
    - /etc/php/7.0/cli/conf.d/20-exif.ini
    - /etc/php/7.0/cli/conf.d/20-fileinfo.ini
    - /etc/php/7.0/cli/conf.d/20-ftp.ini
    - /etc/php/7.0/cli/conf.d/20-gettext.ini
    - /etc/php/7.0/cli/conf.d/20-iconv.ini
    - /etc/php/7.0/cli/conf.d/20-json.ini
    - /etc/php/7.0/cli/conf.d/20-mbstring.ini
    - /etc/php/7.0/cli/conf.d/20-phar.ini
    - /etc/php/7.0/cli/conf.d/20-posix.ini
    - /etc/php/7.0/cli/conf.d/20-readline.ini
    - /etc/php/7.0/cli/conf.d/20-shmop.ini
    - /etc/php/7.0/cli/conf.d/20-simplexml.ini
    - /etc/php/7.0/cli/conf.d/20-sockets.ini
    - /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
    - /etc/php/7.0/cli/conf.d/20-sysvsem.ini
    - /etc/php/7.0/cli/conf.d/20-sysvshm.ini
    - /etc/php/7.0/cli/conf.d/20-tokenizer.ini
    - /etc/php/7.0/cli/conf.d/20-wddx.ini
    - /etc/php/7.0/cli/conf.d/20-xmlreader.ini
    - /etc/php/7.0/cli/conf.d/20-xmlwriter.ini
    - /etc/php/7.0/cli/conf.d/20-xsl.ini


  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.


Installation failed, deleting ./composer.json.***

Upvotes: 1

Views: 227

Answers (1)

Vladimir
Vladimir

Reputation: 1391

According to composer error message you need to install php module ext-zip.

run sudo apt-get install php7.0-zip

It will andding php module ext-zip to your linux packages.

Upvotes: 2

Related Questions