Centos 为什么autogen.sh即使使用正确的autoconf也会失败?

Centos 为什么autogen.sh即使使用正确的autoconf也会失败?,centos,autotools,autoconf,automake,autogen,Centos,Autotools,Autoconf,Automake,Autogen,autogen.sh失败,输出显示我需要更高版本的autoconf。但事实上,我有一个2.6倍的自动积分 为什么它仍然失败 [mirror@home 4]$ ./autogen.sh + autoreconf -i -f -v autoreconf: Entering directory `.' autoreconf: configure.in: not using Gettext autoreconf: running: aclocal --force -I m4 configure.in:4

autogen.sh失败,输出显示我需要更高版本的autoconf。但事实上,我有一个2.6倍的自动积分

为什么它仍然失败

[mirror@home 4]$ ./autogen.sh
+ autoreconf -i -f -v
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal --force -I m4
configure.in:4: error: Autoconf version 2.60 or higher is required
configure.in:4: the top level
autom4te: /usr/bin/m4 failed with exit status: 63
aclocal: autom4te failed with exit status: 63
autoreconf: aclocal failed with exit status: 63
//配置中的内容:4
这是AC_PREREQ(2.60)

2.63>2.60,但autogen失败了,这真是令人困惑:(


我想知道的是autogen.sh失败的原因?

您安装了两个版本的autoconf,当
aclocal
运行
autom4te
时,会启动旧版本。您的路径中是否有
autom4te-2.6x
?如果是,请在运行
AutoEconf-2.64
之前设置
export autom4te=autom4te2.6x

或者干脆跑:

AUTOM4TE=autom4te2.6x ./autogen.sh
另见:


configure.in
的第4行实际是什么?
configure.in
实际上是
configure.ac
的旧名称,所以我猜您是在尝试更新旧项目?尝试重命名该文件(当遇到
configure.in
文件时,autoconf可能会假定一些兼容的东西)
autoeconf--version
打印什么?@ptomoto autoeconf(GNU Autoconf)2.59可能会修复您的系统,使autoeconf指向autoeconf2.6x,就像Autoconf指向autoconf2.6x一样。
[mirror@home 4]$ autoconf --version
autoconf (GNU Autoconf) 2.63
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later
<http://gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.
    autoreconf --version
    autoreconf (GNU Autoconf) 2.59
AUTOM4TE=autom4te2.6x ./autogen.sh