当试图安装pecl扩展时,在mac os x 10.7.3上出现$ PHP_AUTOCONF错误

我试图用pecl_http和memcache设置我的机器,在这两种情况下,我得到类似的错误。 这是在MAC OS X 10.7.3(狮子),我也有XCODE安装在它上面。 在运行这些命令之前,我还安装了Zend Server社区版本,并且设置了CFLAGS='-arch i386 -arch x86_64'环境variables集

 bash-3.2# **sudo pecl install pecl_http-1.7.1** downloading pecl_http-1.7.1.tgz ... Starting to download pecl_http-1.7.1.tgz (174,098 bytes) .....................................done: 174,098 bytes 71 source files, building running: phpize Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 Cannot find autoconf. Please check your autoconf installation and the **$PHP_AUTOCONF environment variable. Then, rerun this script.** **ERROR: `phpize' failed** 

只需手动安装autoconf:

根据http://developer.casgrain.com/?p=125

XCODE 4.3并没有把所有的autoconf等工具放在Developer文件夹中。 它甚至不在MACINTOSH HD中创build该文件夹。 我必须降级到XCODE 4.2.1,它将您需要的所有东西安装到Developer文件夹中,现在我看不到任何错误。

另外这里是一个有用的参考: http : //inessential.com/2012/02/17/everything_moved_in_xcode_4_3