php - 安装 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].
解决方案
在您的php.ini
文件中,取消注释以下行
;extension=php_intl.dll
推荐阅读
- python - PyQt5:如何将文本从 QTextEdit 拖到 QlistView 中?
- c# - UriBuilder - 删除端口
- bash - 在 Ubuntu 中使用值编辑 Bashrc
- python - 跳过阅读文本文件python中的某些部分
- python - 使用自定义创建操作测试 DRF 模型时出现 KeyError
- angular - Angular项目中的Rxjs websockets
- sql - 动态赋予别名与在 sql server 中声明变量相同
- c++ - 尝试新对象Qchart时,ubuntu中的C ++ Qt分段错误
- excel - “设置 Application.Workbooks.Open”返回错误值
- sql - 函数创建和调用