Ubuntu 16.04+PHP7.1+CakePHP3.5.1 환경 설정 로그

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-

설정 완료



조금 차례 실수하면 상당히 되므로, 주의해 주세요.

좋은 웹페이지 즐겨찾기