我正在按照链接安装PHP扩展,但是我卡在了中间。
当我尝试运行这个命令pecl install intl
时,我得到了下面的信息:
Specify where ICU libraries and headers can be found [DEFAULT] :
我不知道 ICU 库的位置。
如果我按回车键,就会出现这个错误:
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库的正确路径? 我正在使用High Sierra和带有PHP版本7.1的MAMP。
brew
,就像在这个问题的答案中描述的那样:https://dev59.com/Ap7ha4cB1Zd3GeqPqemC - Kilian BatznerPayumBundle
,它需要这个扩展。 - SlimenTN