phpize编译,Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了phpize编译,Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF相关的知识,希望对你有一定的参考价值。

# /usr/java/php5/bin/phpize

Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20050922
Zend Extension Api No: 220051025
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
environment variable is set correctly and then rerun this script.

# rpm -qa|grep m4
m4-1.4.13-5.el6.x86_64
# rpm -qa|grep autoconf
autoconf-2.63-5.1.el6.noarch
m4和autoconf 已经安装完成。

phpinfo(); PHP_AUTOCONF /usr/bin/autoconf

为什么还是报找不到autoconf?

参考技术A 试试
yum install php-devel

yum install gcc gcc-c++追问

谢谢
不过还是不成功

追答

先yum install autoconf

phpize拓展时报错:Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCO

使用phpize编译php扩展的时候出现报错

Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

报错意思的是找到一个叫autoconf的工具,我们执行一下yum命令去安装即可

yum install autoconf -y

以上是关于phpize编译,Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF的主要内容,如果未能解决你的问题,请参考以下文章

phpize建立php扩展 Cannot find config.m4

Ubuntu下PHP动态编译出现Cannot find autoconf的解决方法

phpize建立PHP扩展报错Cannot find config.m4.

解决Cannot find config.m4 Make sure that you run '/home/php/bin/phpize' in the top level sourc

安装iamp模块,编译报错configure: error: Cannot find imap library (libc-client.a). Please check your c-client

Cannot find autoconf Please check your autoconf installatio