为什么autogen.sh用正确的autoconf即使失败了吗?(why autogen.sh fa

2019-09-21 17:46发布

autogen.sh失败,则输出表明我需要更高版本的一个autoconf。 但其实我有一个2.6倍的autoconf ....

为什么它还是没有?

[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)

[mirror@home 4]$ autoconf
autoconf      autoconf2.59  autoconf2.6x
[mirror@home 4]$ autoconf
[mirror@home 4]$ ls -l autocon
[mirror@home 4]$ ls /usr/bin/autoconf* -l
lrwxrwxrwx 1 root root    12 Aug 27 13:55 /usr/bin/autoconf -> autoconf2.6x
-rwxr-xr-x 1 root root  7663 Jan  6  2007 /usr/bin/autoconf2.59
-rwxr-xr-x 1 root root 14635 Feb  3  2011 /usr/bin/autoconf2.6x

2.63> 2.60,但未能AUTOGEN,它真的很困惑:(

[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

我想知道究竟是为什么autogen.sh失败?

Answer 1:

您必须安装的autoconf的两个版本,当aclocal运行autom4te ,这将启动旧的。 你有autom4te-2.6x于你的路径? 如果是的话,设置export AUTOM4TE=autom4te2.6x运行前autoreconf-2.64

或者只是运行:

AUTOM4TE=autom4te2.6x ./autogen.sh

也可以看看:

更新autoconf的至少2.6

为什么我没能建立与autoconf2.6x autoconf的,其版本较新,好歹2.6



文章来源: why autogen.sh failed even with the correct autoconf?