我需要在我的mac上使用扩展intl和XAMPP.
所以我按照这个链接:
在XAMPP for Mac Lion 10.8上安装Php-intl
http://lvarayut.blogspot.it/2013/09/installing-intl-extension-in-xampp.html
我重新启动我的apache服务器,但没有安装扩展.因为如果我发布:
php -m | grep intl #should return 'intl'
Run Code Online (Sandbox Code Playgroud)
回来空了
没有它我无法启动的命令是对于composer和cakephp这样:
composer create-project --prefer-dist -s dev cakephp/app cakephp3
Run Code Online (Sandbox Code Playgroud)
给我这个错误:
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 * …Run Code Online (Sandbox Code Playgroud) 我正在关注此链接以安装此PHP扩展,但我陷入了中间.
当我尝试运行此命令时,pecl install intl我收到以下消息:
Specify where ICU libraries and headers can be found [DEFAULT] :
Run Code Online (Sandbox Code Playgroud)
我不知道ICU库的位置.
如果我按Enter键我会收到此错误:
configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.
ERROR: `/private/tmp/pear/install/intl/configure --with-php-config=/usr/bin/php-config --with-icu-dir=DEFAULT' failed
Run Code Online (Sandbox Code Playgroud)
如何找到ICU库的正确路径?我正在使用PHP版本7.1的High Sierra和MAMP