我试图用pecl_http和memcache设置我的机器,在这两种情况下,我都得到了类似的错误。这是在MAC 10.7.3 (lion)上的,我也在上面安装了XCODE。在运行这些命令之前,我还安装了Zend Server社区版,并设置了CFLAGS='-arch i386 -arch x86_64‘环境变量。所以请帮助我做我需要做的事情
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
发布于 2012-03-02 10:29:53
brew install autoconf
更简单的解决方案
发布于 2012-09-09 02:07:48
您需要安装autoconfig。我通常喜欢从源代码安装库。因此,您可以执行以下操作:
curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-latest.tar.gz
tar xzf autoconf-latest.tar.gz
cd autoconf-*
./configure --prefix=/usr/local
make
sudo make install
我刚和Mountain Lion一起经历了这一切。
发布于 2013-04-01 23:53:55
在Mac OS X 10.8上,情况略有不同。Bob Spryn的高投票解决方案不起作用,因为它不会创建符号链接,所以在安装autoconf
之后,您应该创建符号链接:
sudo ln -s /usr/local/Cellar/autoconf/2.69/bin/autoconf /usr/bin/autoconf
sudo ln -s /usr/local/Cellar/autoconf/2.69/bin/autoheader /usr/bin/autoheader
我知道这个问题是针对10.7的,但我希望我的答案对10.8的人有用。:)
更新:也适用于10.10 Yosemite。
https://stackoverflow.com/questions/9322742
复制相似问题