我已经开始pecl
在MAMP上安装。我已将正确的php版本添加到路径中,当which php
它显示/ Applications / MAMP / ...时,这是正确的。
我已经Server Components and libraries
将它们移动到php中的新文件夹中,并运行./configure
一切似乎一切正常,并仔细检查了安装和解压缩过程中执行的所有检查。
它到达最后一行并说;
configure: error: Please specify the install prefix of iconv with --with-iconv=<DIR>
我应该在哪里设置<DIR>
iconv?
只是创建另一个文件夹并指向该文件夹?
我只是想安装mongo pecl。
我遵循的信息在这里http://www.lullabot.com/blog/article/installing-php-pear-and-pecl-extensions-mamp-mac-os-x-107-lion
现在就着手解决这个问题,发现了一种解决方法,它只是禁用iconv,./configure --without-iconv
这当然不是最好的解决方案,但对我来说却有效。
编辑:下载了libiconv-1.14软件包,然后运行./configure,make,make install,PHP configure运行正常。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句