Ubuntu 16.04+PHP7.1+CakePHP3.5.1 환경 설정 로그
1953 단어 PHP7.1Composerubuntu16.04CakePHP
Ubuntu 16.04+PHP7.1+CakePHP3.5.1 환경 설정 로그
간단히 말해서, 아래 모듈은 composer가 CakePHP 프로젝트를 만들기 전에하지 않으면 다음 오류가 발생합니다.
필수 명령 및 PHP 모듈
zip, php-mbstring, php-xml
에러
$ composer self-update && composer create-project --prefer-
dist cakephp/app my_app_name
You are already using composer version 1.5.1 (stable channel).
Installing cakephp/app (3.5.0)
Failed to download cakephp/app from dist: The zip extension and unzip command are both missing, skipping.
The php.ini used by your command-line PHP is: /etc/php/7.1/cli/php.ini
Now trying to download from source
- Installing cakephp/app (3.5.0): Cloning f807e4ef14 from cache
Created project in my_app_name
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
- cakephp/cakephp-codesniffer 3.0.0 requires squizlabs/php_codesniffer ^3.0.0 -> satisfiable by squizlabs/php_codesniffer[3.0.0, 3.0.1, 3.0.2].
- cakephp/cakephp-codesniffer 3.0.1 requires squizlabs/php_codesniffer ^3.0.0 -> satisfiable by squizlabs/php_codesniffer[3.0.0, 3.0.1, 3.0.2].
- squizlabs/php_codesniffer 3.0.2 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
- squizlabs/php_codesniffer 3.0.1 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
- squizlabs/php_codesniffer 3.0.0 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
- Installation request for cakephp/cakephp-
설정 완료
조금 차례 실수하면 상당히 되므로, 주의해 주세요.
Reference
이 문제에 관하여(Ubuntu 16.04+PHP7.1+CakePHP3.5.1 환경 설정 로그), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/ys-office-me/items/0fade9c08668981461fc
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
zip, php-mbstring, php-xml
$ composer self-update && composer create-project --prefer-
dist cakephp/app my_app_name
You are already using composer version 1.5.1 (stable channel).
Installing cakephp/app (3.5.0)
Failed to download cakephp/app from dist: The zip extension and unzip command are both missing, skipping.
The php.ini used by your command-line PHP is: /etc/php/7.1/cli/php.ini
Now trying to download from source
- Installing cakephp/app (3.5.0): Cloning f807e4ef14 from cache
Created project in my_app_name
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
- cakephp/cakephp-codesniffer 3.0.0 requires squizlabs/php_codesniffer ^3.0.0 -> satisfiable by squizlabs/php_codesniffer[3.0.0, 3.0.1, 3.0.2].
- cakephp/cakephp-codesniffer 3.0.1 requires squizlabs/php_codesniffer ^3.0.0 -> satisfiable by squizlabs/php_codesniffer[3.0.0, 3.0.1, 3.0.2].
- squizlabs/php_codesniffer 3.0.2 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
- squizlabs/php_codesniffer 3.0.1 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
- squizlabs/php_codesniffer 3.0.0 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
- Installation request for cakephp/cakephp-
Reference
이 문제에 관하여(Ubuntu 16.04+PHP7.1+CakePHP3.5.1 환경 설정 로그), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/ys-office-me/items/0fade9c08668981461fc텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)