首页 > 解决方案 > 安装 CakePHP 时,您的系统缺少请求的 PHP 扩展 intl

问题描述

我有 PHP 版本 7,Windows 10 Pro OS,并且已经extension=php_intl.dll在没有注释的情况下注入了 php.ini。(它甚至没有;extension=php_intl.dll放在首位)

通过 composer 安装显示以下错误:

您的要求无法解决为一组可安装的软件包。

问题 1

- cakephp/cakephp 3.6.9 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.6.8 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.6.7 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.6.6 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.6.5 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.6.4 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.6.3 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.6.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.6.10 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.6.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.6.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- Installation request for cakephp/cakephp 3.6.* -> satisfiable by cakephp/cakephp[3.6.0, 3.6.1, 3.6.10, 3.6.2, 3.6.3, 3.6.4, 3.6.5, 3.6.6, 3.6.7, 3.6.8, 3.6.9].

标签: phpcakephp

解决方案


在您的php.ini文件中,取消注释以下行

;extension=php_intl.dll

推荐阅读