2

autogen.sh が失敗しました。出力は、より高いバージョンの autoconf が必要であることを示しています。しかし、実際には2.6xの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

// configure: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 が失敗した理由です。

4

1 に答える 1

1

2 つのバージョンの 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 よりも新しい

于 2013-06-28T21:07:38.647 に答える