我正在尝试在 MAMP 上配置 PHP 5.5,遵循这篇文章:
Having problems while try to install OAUTH with PECL in MAMP on mac OS lion.
在我将下载的 PHP 文件夹移动到 MAMP/bin/php
之后(我还尝试创建目录 /php5.5.14/include/php
,如上面的帖子)并运行 ./configure
。
我遇到了一个错误:
checking for iconv support... yes
checking for iconv... no
checking for libiconv... no
configure: error: Please specify the install prefix of iconv with --with-iconv=< DIR >
在哪里可以“指定安装前缀”或如何解决这个问题?
谢谢!!
最佳答案
与 Homebrew :
brew install libiconv
然后
./configure --with-iconv=$(brew --prefix libiconv)
brew --prefix libiconv
通常计算为 /usr/local/opt/libiconv
关于PHP 配置错误 : Please specify the install prefix of iconv with --with-iconv=<DIR>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24987305/