尝试安装 pecl 扩展时,mac os x 10.7.3 上的 $PHP_AUTOCONF 错误 [英] $PHP_AUTOCONF errors on mac os x 10.7.3 when trying to install pecl extensions

查看:38
本文介绍了尝试安装 pecl 扩展时,mac os x 10.7.3 上的 $PHP_AUTOCONF 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 pecl_http 和 memcache 设置我的机器,在这两种情况下,我都遇到了类似的错误.这是在 MAC OS X 10.7.3 (lion) 上,我也安装了 XCODE.在运行这些命令之前,我还安装了 Zend Server 社区版,并设置了 CFLAGS='-arch i386 -arch x86_64' 环境变量.所以请帮助我做我需要做的事情

I am trying to setup my machine with pecl_http and memcache and in both cases, I get similar errors. This is on MAC OS X 10.7.3 (lion) and I also have XCODE installed on it. I also installed Zend Server community edition before running these commands and have CFLAGS='-arch i386 -arch x86_64' environment variables set. So please help with what I need to do

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

推荐答案

brew install autoconf

更简单的解决方案

这篇关于尝试安装 pecl 扩展时,mac os x 10.7.3 上的 $PHP_AUTOCONF 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆