首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Cakephp : intl扩展缺失

Cakephp : intl扩展缺失
EN

Stack Overflow用户
提问于 2019-07-24 13:54:13
回答 1查看 178关注 0票数 1

我正在我的mac中安装CakePHP 3.8 (MacOSHighSeriaVersion10.13.6),但是昨天告诉我你的系统中缺少扩展intl,但我遇到了这个问题。

代码语言:javascript
复制
 User-iMac:TEST zakaria$ composer create-project --prefer-dist 
 cakephp/app my_app_name
 Installing cakephp/app (3.8.0)
 - Installing cakephp/app (3.8.0): Loading from cache
 Created project in my_app_name
 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.8.1 requires ext-intl * -> the requested PHP 
 extension intl is missing from your system.
 - cakephp/cakephp 3.8.0 requires ext-intl * -> the requested PHP 
 extension intl is missing from your system.
 - Installation request for cakephp/cakephp 3.8.* -> satisfiable 
by 
cakephp/cakephp[3.8.0, 3.8.1].

To enable extensions, verify that they are enabled in your .ini 
files:
 - /etc/php.ini
You can also run `php --ini` inside terminal to see which files 
are 
used by PHP in CLI mode.
User-iMac:TEST User$ 
  • 我试图取消extension=php_intl.dll在php.ini中的注释
  • 我试着添加extension=intl.so

有这么多的解决方案,但似乎什么都没有用

EN

回答 1

Stack Overflow用户

发布于 2019-09-27 12:55:09

不幸的是,在missing上的PHP 7.1.24的本地分期付款中缺少Intl扩展。

从php.net下载PHP7.1,安装XCode命令行工具,ICU (http://site.icu-project.org/),Autoconf,重新安装developer头文件,最后使用phpize安装Intl扩展名。

重要:您必须禁用SIP。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57184623

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档