简体   繁体   English

PHP ext-intl * OSX Yosmite上CakePHP 3.0的扩展安装问题

[英]PHP ext-intl * extension installation issue for Cakephp 3.0 on OSX Yosmite

I am trying to install cakephp 3.0 using composer on MAC OSX Yosmite. 我正在尝试在MAC OSX Yosmite上使用作曲器安装cakephp 3.0。

But when I run these command line on terminal: 但是当我在终端上运行这些命令行时:

cd /Applications/XAMPP/htdocs/CakeBake

php composer.phar create-project cakephp/app php composer.phar创建项目cakephp / app

I encounter following errors : 我遇到以下错误:

 - 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]. 

I have already activated : extension=php_intl.dll and also added extension=intl.so to my php.ini in XAMPP/etc/php.ini. 我已经激活了:extension = php_intl.dll,并且还在XAMPP / etc / php.ini中将extension = intl.so添加到了我的php.ini中。

Php version on my computer is php 5.6.8 and XAMPP 5.6.8-0. 我计算机上的PHP版本是php 5.6.8和XAMPP 5.6.8-0。 Note: I believed I have installed intl extension through the terminal using ICU libraries.(I am not sure if its the right way to put it. I am very new to all these thing). 注意:我相信我已经使用ICU库通过终端安装了intl扩展。(我不确定这是否是正确的放置方式。我对所有这些东西都是新手。) But It still giving me this error. 但是它仍然给我这个错误。 Any help would be greatly appreciated. 任何帮助将不胜感激。 I hope I provided enough information. 我希望我提供了足够的信息。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM