OSX Composer Cakephp 3.4.2设置问题

时间:2017-05-16 10:08:09

标签: macos homebrew cakephp-3.0

我正在尝试使用OS X Sierra 10.12.5创建带有作曲家的cakephp 3.4.2项目。

我收到错误:

Updating dependencies (including require-dev)

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - cakephp/cakephp 3.4.6 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - cakephp/cakephp 3.4.5 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - cakephp/cakephp 3.4.4 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - cakephp/cakephp 3.4.3 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - cakephp/cakephp 3.4.2 requires lib-icu >=4.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
    - cakephp/cakephp 3.4.1 requires lib-icu >=4.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
    - cakephp/cakephp 3.4.0 requires lib-icu >=4.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
    - Installation request for cakephp/cakephp 3.4.* -> satisfiable by cakephp/cakephp[3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 3.4.5, 3.4.6].

但是当I run brew install php56-intl 我明白了:

Error: /usr/local/Cellar is not writable. You should change the
ownership and permissions of /usr/local/Cellar back to your
user account:
  sudo chown -R $(whoami) /usr/local/Cellar
Warning: homebrew/php/php56-intl-5.6.30_7 already installed

由于我只使用“普通”用户帐户,在sudoers中没有这个并且有单独的管理员帐户,我使用该管理员帐户安装了home-brew和php56 intl。

1 个答案:

答案 0 :(得分:0)

我刚刚解决了同样的问题..试试这个:

  • 将所有icu*.dll个文件从php目录复制到server/bin目录。
  • 修改php.ini,删除extension=php_intl.dll的逗号(;)。
  • 重启http服务器。
  • 再次运行作曲家。

应该工作