我正在尝试使用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 中没有这个帐户并且有单独的管理员帐户,因此我使用该管理员帐户安装了自制和 php56 intl。
我刚刚解决了同样的问题。试试这个:
- 将所有
icu*.dll
文件从 php 目录复制到您的server/bin
目录。 - 编辑
php.ini
删除逗号 (;)的extension=php_intl.dll
. - 重新启动 http 服务器。
- 再次运行作曲家。
应该工作