2017-07-06 98 views
0

所以显然我有2个版本的PHP安装。我有5.6和7 我使用XAMPP Mac和它适用于5.6,我尝试下载作曲家,并拒绝在邮件的末尾,安装CakePHP的bwith此错误作曲家使用不同版本的php

- cakephp/cakephp 3.4.9 requires ext-intl * -> the requested PHP extension intl is missing from your system. 

和向下它说

o enable extensions, verify that they are enabled in your .ini files: 
- /usr/local/etc/php/7.0/php.ini 
    You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. 

因此它运行在甚至不工作的PHP 7上。我尝试从php.ini中删除分号 没有任何工作 谢谢

+3

我认为你需要激活国际扩展。 你可以按照[https://stackoverflow.com/questions/27886117/php-intl-installation-on-xampp](https://stackoverflow.com/questions/27886117/php-intl-installation-on-xampp) –

回答

0

如上所述,cakePHP框架需要国际化扩展(ext-intl)。作为一个最佳实践(并且为了节省时间),我建议启动一个虚拟机或与您的服务器相同的平台(windows,linux,unix,osx)。这样你的发展环境和生产环境是一样的。

至于如何使EXT-国际:

+0

非常感谢!有效 – Raghaddee