環境
OS:windows7
XAMPP:3.2.2
PHP:7.1.6
CakePHP:3.4.X
XAMPP:3.2.2
PHP:7.1.6
CakePHP:3.4.X
XAMPP環境にcomposerでCakePHPをインストールを実行した際に下記のエラーが発生。
エラー内容
Your requirements could not be resolved to an installable set of packages.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
Installing cakephp/app (3.4.2) - Installing cakephp/app (3.4.2): Loading from cache Created project in my_cake 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 3.4.9 requires ext-intl * -> the requested PHP extension intl is missing from your system. - cakephp/cakephp 3.4.8 requires ext-intl * -> the requested PHP extension intl is missing from your system. - cakephp/cakephp 3.4.7 requires ext-intl * -> the requested PHP extension intl is missing from your system. - cakephp/cakephp 3.4.6 requires ext-intl * -> the requested PHP extension intl is missing from your system. - cakephp/cakephp 3.4.5 requires ext-intl * -> the requested PHP extension intl is missing from your system. - cakephp/cakephp 3.4.4 requires ext-intl * -> the requested PHP extension intl is missing from your system. - cakephp/cakephp 3.4.3 requires ext-intl * -> the requested PHP extension intl is missing from your system. - cakephp/cakephp 3.4.2 requires lib-icu >=4.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it. - cakephp/cakephp 3.4.1 requires lib-icu >=4.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it. - cakephp/cakephp 3.4.0 requires lib-icu >=4.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it. - Installation request for cakephp/cakephp 3.4.* -> satisfiable by cakephp/cakephp[3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 3.4.5, 3.4.6, 3.4.7, 3.4.8, 3.4.9]. To enable extensions, verify that they are enabled in your .ini files: - C:\xampp\php\php.ini You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. |
解決方法
php.iniの;extension=php_intl.dll
のコメントアウトをはずす
↓
apachを再起動
↓
失敗時にフォルダが作成されている場合はフォルダを削除
↓
インストールコマンドを再度実行
この手順で無事インストールできました。