无法在XAMPP Mac上安装CakePHP

时间:2016-03-11 03:56:22

标签: php macos cakephp

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

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上安装了intl,但是此错误消息一直显示出来。我一直在研究这个问题大约4个小时。

1 个答案:

答案 0 :(得分:2)

我按照说明在osx上安装了cakePHP3:

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

相关问题