Mac の XAMPP 環境に cakephp をインストールしてみました.
ちょっとはまったのでメモ代わりにインストール手順とかを残しておきます.
% curl -s https://getcomposer.org/installer | /Applications/XAMPP/bin/php
% /Applications/XAMPP/bin/php composer.phar create-project --prefer-dist cakephp/app test
Installing cakephp/app (3.0.3)
- Installing cakephp/app (3.0.3)
Downloading: 100%
Created project in test
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- cakephp/cakephp 3.0.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.9 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.8 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.7 requires ext-intl * -> the requested PHP extension intl is missing from your system.
....
大量なエラーで駄目.intl がないとのこと.
% sudo vi /Applications/XAMPP/etc/php.ini
extension=php_intl.dll の行をコメントアウト.apache 再起動.まだダメ.intl ライブラリが入ってないらしい.
% sudo /Applications/XAMPP/bin/pecl channel-update pecl.php.net
% sudo /Applications/XAMPP/bin/pecl install intl
apache 再起動.まだダメ.intl ライブラリの名前が間違ってるね.
% sudo vi /Applications/XAMPP/etc/php.ini
extension=php_intl.dll の行を extension=intl.so に変更.
apache 再起動.もう一回やり直し.
% rm -rf *
% curl -s https://getcomposer.org/installer | /Applications/XAMPP/bin/php
% /Applications/XAMPP/bin/php composer.phar create-project --prefer-dist cakephp/app test
インストール出来た.