작성기를 통해 laravel 설치 프로그램을 설치할 수 없습니다.
Ubuntu PC에 작곡가와 함께 laravel 설치 프로그램을 설치하려고하는데 설치 중에이 오류가 발생합니다. `설치 가능한 패키지 세트로 요구 사항을 해결할 수 없습니다.
Problem 1
- laravel/installer v1.4.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- laravel/installer v1.4.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- Installation request for laravel/installer ^1.4 -> satisfiable by laravel/installer[v1.4.0, v1.4.1].
To enable extensions, verify that they are enabled in those .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/20-calendar.ini
- /etc/php/7.0/cli/conf.d/20-ctype.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-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-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
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
`
오류가 나타나면 다음 주석을 사용합니다.
composer global require "laravel/installer"
그것은 zip 확장자 가 필요하다고 말합니다
laravel / installer v1.4.0에는 ext-zip이 필요합니다 ........
설치된 PHP 버전에 해당하는 버전을 설치하십시오.
# 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
# For php v7.3
sudo apt-get install php7.3-zip
PHP7.1의 경우 이것을 설치하십시오
sudo apt-get install php7.1-zip
centos 7에서 나는 다음을 사용했습니다.
yum install php-pecl-zip
다른 솔루션이 저에게 효과가 없었기 때문입니다.
의 Ubuntu 16.04
경우이 명령을 사용 PHP7.2
했으며 저에게 효과적이었습니다.
sudo apt-get install php7.2-zip
PHP7.2가 설치된 Centos 7 :
sudo yum --enablerepo=remi-php72 install php-pecl-zip
Macports가있는 Mac의 경우
# port install php71-zip
Ubuntu 18.04 LTS의 PHP 7.2 용
sudo apt-get install php7.2-zip
매력처럼 작동
당신의 PHP 버전을 알고
php -v
PHP 7.3.0의 경우
sudo apt-get install php7.3-zip
php 7.3 및 laravel 5.7과 함께 우분투 16.04 LTS 버전에서 WSL을 사용하고 있습니다.
sudo apt-get install php7.3-zip
나를 위해 일
sudo apt-get install php-zip
This solution worked for me.
V=`php -v | sed -e '/^PHP/!d' -e 's/.* \([0-9]\+\.[0-9]\+\).*$/\1/'` \
sudo apt-get install php$V-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
참고URL : https://stackoverflow.com/questions/46058457/cant-install-laravel-installer-via-composer
'development' 카테고리의 다른 글
.NET의 문자열에서 큰 따옴표 제거 (0) | 2020.09.17 |
---|---|
문장에서 파이썬 분할 텍스트 (0) | 2020.09.17 |
Haskell에서 터미널 화면을 어떻게 지우나요? (0) | 2020.09.17 |
django syncdb 및 업데이트 된 모델 (0) | 2020.09.16 |
모바일 Safari에서 클릭 이벤트에 대한 300ms 지연 제거 (0) | 2020.09.16 |