【发布时间】:2018-06-16 13:57:27
【问题描述】:
我正在关注这个link 来安装这个 PHP 扩展,但我被困在了中间。
当我尝试运行此命令 pecl install intl 时,我收到以下消息:
Specify where ICU libraries and headers can be found [DEFAULT] :
而且我不知道 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
如何找到 ICU 库的正确路径? 我正在使用带有 PHP 7.1 版的 High Sierra 和 MAMP
【问题讨论】:
-
它可能使用
brew工作,如该问题的答案所述:*.com/questions/42085083/… -
我已经尝试过了,但还是不行,你看我正在尝试为 symfony 安装
PayumBundle并且它需要这个扩展
标签: php terminal macos-high-sierra intl