【发布时间】:2015-03-09 06:46:45
【问题描述】:
我需要在我的 Mac 上通过 XAMPP 使用扩展 intl。
所以我关注了这个链接:
Php-intl installation on XAMPP for Mac Lion 10.8
http://lvarayut.blogspot.it/2013/09/installing-intl-extension-in-xampp.html
我总是重启我的 apache 服务器,但没有安装扩展。因为如果我启动:
php -m | grep intl #should return 'intl'
返回空
没有它我无法启动的命令是针对 composer 和 cakephp 的,如下所示:
composer create-project --prefer-dist -s dev cakephp/app cakephp3
返回这个错误:
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for cakephp/cakephp 3.0.*-dev -> satisfiable by cakephp/cakephp[3.0.x-dev].
- cakephp/cakephp 3.0.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
Problem 2
- cakephp/cakephp 3.0.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/bake dev-master requires cakephp/cakephp 3.0.x-dev -> satisfiable by cakephp/cakephp[3.0.x-dev].
- Installation request for cakephp/bake dev-master -> satisfiable by cakephp/bake[dev-master].
所以我需要用扩展intl来解决ext-intl的问题。
有人可以帮我解决这个问题吗? 如何安装此扩展程序?
谢谢
【问题讨论】:
-
设置MAMP路径stackoverflow.com/questions/4145667/…也是自动的