【问题标题】:PHP ext-intl * extension installation issue for Cakephp 3.0 on OSX YosmiteOSX Yosemite 上 Cakephp 3.0 的 PHP ext-intl * 扩展安装问题
【发布时间】:2015-07-13 06:47:50
【问题描述】:

我正在尝试在 MAC OSX Yosmite 上使用 composer 安装 cakephp 3.0。

但是当我在终端上运行这些命令行时:

cd /Applications/XAMPP/htdocs/CakeBake

php composer.phar 创建项目 cakephp/app

我遇到以下错误:

- cakephp/cakephp 3.0.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.3 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-beta3 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-beta2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-beta1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-alpha2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-alpha1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-RC2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-RC1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- Installation request for cakephp/cakephp ~3.0 -> satisfiable by cakephp/cakephp[3.0.0, 3.0.0-RC1, 3.0.0-RC2, 3.0.0-alpha1,
3.0.0-alpha2, 3.0.0-beta1, 3.0.0-beta2, 3.0.0-beta3, 3.0.1, 3.0.2, 3.0.3, 3.1.x-dev, 3.0.x-dev].

我已经激活了:extension=php_intl.dll 并且还在 XAMPP/etc/php.ini 中的 php.ini 中添加了 extension=intl.so。

我电脑上的 PHP 版本是 php 5.6.8 和 XAMPP 5.6.8-0。 注意:我相信我已经使用 ICU 库通过终端安装了 intl 扩展。(我不确定它是否正确放置它。我对所有这些东西都很陌生)。但它仍然给我这个错误。任何帮助将不胜感激。我希望我提供了足够的信息。

【问题讨论】:

  • 你在激活之前安装了extension吗??
  • 是的,我已经通过终端完成了安装,然后我更改了 php.ini 文件。但我怀疑我将这些扩展安装在正确的位置并且 XAMPP 找不到这些扩展? (如果没有意义,请原谅。我对这一切都很陌生)
  • MacOSx 已经有 PHP,这与 XAMPP 不同,当您运行 composer 时,它默认使用 php,您需要确保控制台使用 XAMPP 的 php 进行检查 @987654321 @

标签: php cakephp osx-yosemite


【解决方案1】:

尝试在你的 php.ini 中启用 extension=php_intl.dll

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-04-08
    • 2017-05-19
    • 2016-01-21
    • 2013-09-24
    • 2015-10-26
    • 2018-06-16
    • 2017-06-24
    • 2013-01-18
    相关资源
    最近更新 更多