Leonidas Savvides
Leonidas Savvides

Reputation: 11

CakePHP 3.1.1 Install Error

I installed Composer for windows file.exe and tried to install cakePHP 3.1.1 just now for the first time, but got the below error. Files[CakePHP311] created in that folder and also have XAMPP[PHP version 5.6.8] + Windows 10 Pro.

What is this error and cakePHP files needed re-setup?

User@cccc/C/xampp/htdocs/cakePHP_Blog
$ composer create-project --prefer-dist cakephp/app cakePHPblog
Installing cakephp/app (3.1.1)
  - Installing cakephp/app (3.1.1)
    Downloading: 100%

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

Problem

- cakephp/cakephp 3.1.x-dev requires ext-intl * -> the requested PHP extensi on intl is missing from your system.
- cakephp/cakephp 3.1.0-beta2 requires ext-intl * -> the requested PHP exten sion intl is missing from your system.
- cakephp/cakephp 3.1.0-beta requires ext-intl * -> the requested PHP extens ion intl is missing from your system.
- cakephp/cakephp 3.1.0-RC1 requires ext-intl * -> the requested PHP extensi on intl is missing from your system.
- cakephp/cakephp 3.1.0 requires ext-intl * -> the requested PHP extension i ntl is missing from your system.
- Installation request for cakephp/cakephp ~3.1 -> satisfiable by cakephp/ca kephp[3.1.0, 3.1.0-RC1, 3.1.0-beta, 3.1.0-beta2, 3.1.x-dev].

Upvotes: 0

Views: 2642

Answers (2)

Namhyeon Go
Namhyeon Go

Reputation: 673

This error occurred from php-intl plugin missing.

If you use Linux, you can try apt-get install php5-intl or yum install php-intl command.

Upvotes: 2

AP 2022
AP 2022

Reputation: 787

Make sure the extension php_intl is installed and enabled. It comes bundled with the XAMPP installation but may not be enabled. You can enable it by checking for the following line in your php.ini (located at /xampp/php/php.ini) which may be commented out and removing the comment:

;extension=php_intl.dll

TO (remove the semicolon)

 extension=php_intl.dll

You will then need to restart Apache from the Xampp Control Panel.

Upvotes: 0

Related Questions