OSX 10.10 PHP Composer 找不到所需的扩展 intl 和 mcrypt



我正在尝试使用以下命令在OSX 10.10上创建一个蛋糕PHP应用程序:

php /usr/local/bin/composer.phar create-project --prefer-dist cakephp/app testapp 

当我这样做时,我收到以下错误:

Your requirements could not be resolved to an installable set of packages.
Problem 1
- 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.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.1.x-dev, 3.0.x-dev].

我已经通过梨/pecl 安装了 intl 扩展,但仍然继续收到此错误。

请有人恢复我对PHP的信心。

您可能需要运行 php5enmod intl 才能激活 PHP5 模块。否则,请检查您是否在OS X上安装了正确的PHP安装intl:有一个标准的OS X,但是如果您在OS X版本旁边安装了PHP版本,请检查$PATH变量中是否有正确的PHP。

相关内容

  • 没有找到相关文章

最新更新