2016-03-11 76 views
0

所以我一直试图在运行Xampp的Mac笔记本电脑上安装Cake。到目前为止,我一直没有成功。当我尝试创建一个项目,它只是返回这个 - >麻烦在XAMPP Mac上安装CakePHP

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

    Problem 1 
- cakephp/cakephp 3.2.4 requires ext-intl * -> the requested PHP extension intl is missing from your system. 
- cakephp/cakephp 3.2.3 requires ext-intl * -> the requested PHP extension intl is missing from your system. 
- cakephp/cakephp 3.2.2 requires ext-intl * -> the requested PHP extension intl is missing from your system. 
- cakephp/cakephp 3.2.1 requires ext-intl * -> the requested PHP extension intl is missing from your system. 
- cakephp/cakephp 3.2.0 requires ext-intl * -> the requested PHP extension intl is missing from your system. 
- Installation request for cakephp/cakephp ~3.2 -> satisfiable by cakephp/cakephp[3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4]. 

我已经安装了ICU4C并说国际上安装phpinfo.php的,但此错误消息不断显示出来。我一直在为此工作大约4个小时。

+0

帮你一个忙,忘记xampp并使用Ubuntu盒子或类似的Vagrant。更适应性更强,因为你可以运行多个不同配置的盒子,所以你可以更轻松地选择PHP版本,数据库,框架等。 – brianlmerritt

+0

检查[this link](http://stackoverflow.com/questions/18391284/php-intl -installation-on-xampp-for-mac-lion-10-8) – Yash

+0

我的主内置计算机正在运行Ubuntu,但没有Cake。但是这个mac有一个固件密码,所以我什么都不能做。 –

回答

2

我在OSX上安装cakePHP3按照下列指示:在xmapp

打开php.ini文件,该文件应设在“xampp->等”文件夹中。编辑这个文件,首先找到“; extension = php_intl.dll”行并将其更改为“extension = php_intl.dll”remove';'。希望这会有所帮助。 让我知道如果安装失败,你会得到什么错误。