我正在尝试使用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。
答案 0 :(得分:0)
我刚刚解决了同样的问题..试试这个:
icu*.dll
个文件从php目录复制到server/bin
目录。php.ini
,删除extension=php_intl.dll
的逗号(;)。应该工作