相关疑难解决方法(0)

在XAMPP上安装Php-intl

我需要在我的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 apache macos cakephp

15
推荐指数
3
解决办法
4万
查看次数

无法在MacosX上安装php Intl扩展

我正在关注此链接以安装此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

php terminal intl macos-high-sierra

9
推荐指数
2
解决办法
1万
查看次数

标签 统计

php ×2

apache ×1

cakephp ×1

intl ×1

macos ×1

macos-high-sierra ×1

terminal ×1