PHP-Symfony4 리눅스(linux) Ubunto 에 설치하기시 Error

아래의 에러메세지 발생

#> composer create-project symfony/skeleton my_project 

Installing symfony/website-skeleton (v3.4.17.3)

    Failed to download symfony/website-skeleton from dist: The zip extension and unzip command are both missing, skipping.

Your command-line PHP is using multiple ini files. Run `php –ini` to show them.

    Now trying to download from source

  – Installing symfony/website-skeleton (v3.4.17.3): Cloning ed1999eeec from cache

Created project in the_example003

Loading composer repositories with package information

Installing dependencies (including require-dev) from lock file

Package operations: 90 installs, 0 updates, 0 removals

    Failed to download ocramius/package-versions from dist: The zip extension and unzip command are both missing, skipping.

Your command-line PHP is using multiple ini files. Run `php –ini` to show them.

    Now trying to download from source

  – Installing ocramius/package-versions (1.2.0): Cloning ad8a245dec from cache

    Failed to download symfony/flex from dist: The zip extension and unzip command are both missing, skipping.

Your command-line PHP is using multiple ini files. Run `php –ini` to show them.

    Now trying to download from source

  – Installing symfony/flex (v1.1.1): Cloning 9fb60f232a from cache

Enable the “cURL” PHP extension for faster downloads

………..

for php 7.X. .

(sudo) yum install zip unzip php7.0-zip  (sudo) apt install zip unzip php7.0-zip

For servers with PHP 5.6

sudo apt-get install zip unzip php5.6-zip

I had PHP7.2 on a Ubuntu 16.04 server and it solved my problem:

sudo apt-get install zip unzip php-zip

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다