在MAMP错误的php_sufixconfigurationvariables

我刚刚安装了MAMP,我试图通过pecl安装Mongo扩展,但是出现错误:

 jonesy:bin Billy$ sudo pecl install mongo downloading mongo-1.4.4.tgz ... Starting to download mongo-1.4.4.tgz (141,242 bytes) ..............................done: 141,242 bytes 84 source files, building WARNING: php_bin /Applications/MAMP/bin/php/php5.5.3/bin/php appears to have a suffix /php5.5.3/bin/php, but config variable php_suffix does not match running: phpize Configuring for: PHP Api Version: 20121113 Zend Module Api No: 20121212 Zend Extension Api No: 220121212 Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script. 

我不确定这里发生了什么事。

我的pecl目录是:

 jonesy:bin Billy$ which pecl /Applications/MAMP/bin/php/php5.5.3/bin/pecl 

PHP版本是5.5.3

我将最新版本的PHP下载到以下目录中,并运行./configure因为MAMP没有附带所有模块等。

/Applications/MAMP/bin/php/php5.5.3/include/php

你的实际问题是pecl找不到autoconf:

找不到autoconf。 请检查您的autoconf安装和$ PHP_AUTOCONF环境variables。 然后,重新运行这个脚本。

试着在这个基础上寻找,你应该find你所需要的 – 似乎至less有一个人刚刚编译和安装autoconf:

 wget http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz 

解开这个和CD

 ./configure make sudo make install; 

(来自http://forum.mamp.info/viewtopic.php?f=6&t=3980#p80224