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
// 配置中的内容: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 失败?
您安装了两个版本的 autoconf,当aclocal
runs autom4te
,这将启动旧的。你有没有autom4te-2.6x
在你的道路上?如果是这样,设置export AUTOM4TE=autom4te2.6x
跑步前autoreconf-2.64
.
或者只是运行:
AUTOM4TE=autom4te2.6x ./autogen.sh
也可以看看:
将 autoconf 更新到至少 2.6 https://stackoverflow.com/questions/3985398/update-autoconf-to-at-least-2-6
为什么我无法使用 autoconf2.6x 构建 autoconf,无论如何它的版本比 2.6 新 https://stackoverflow.com/questions/12288891/why-i-failed-to-build-autoconf-with-autoconf2-6x-its-version-is-newer-than-2-6
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)