【问题标题】:why i failed to build autoconf with autoconf2.6x, its version is newer than 2.6 anyhow为什么我无法使用 autoconf2.6x 构建 autoconf,它的版本无论如何都比 2.6 新
【发布时间】:2012-08-30 14:42:32
【问题描述】:

我的系统是基于 centos 的。

我尝试构建 autoconf 的原因是有人告诉我可以尝试构建它以解决其他问题,您可以通过此链接找到动机 why autogen.sh failed even with the correct autoconf?

[mirror@home auto]$ cd autoconf/
[mirror@home autoconf]$ ls
AUTHORS    cfg.mk       ChangeLog.3        COPYINGv3    lib          man           README-hacking
bin        ChangeLog.0  configure.ac       doc          m4           NEWS          tests
BUGS       ChangeLog.1  COPYING            GNUmakefile  maint.mk     README        THANKS
build-aux  ChangeLog.2  COPYING.EXCEPTION  HACKING      Makefile.am  README-alpha  TODO
[mirror@home autoconf]$ autoreconf -iv
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
configure.ac:20: error: Autoconf version 2.60 or higher is required
configure.ac:20: 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

//我的系统有autoreconf2.6x,版本si高于2.6,但还是无法构建,为什么?

[mirror@home autoconf]$ autore
autoreconf      autoreconf2.59  autoreconf2.6x  autorespond
[mirror@home autoconf]$ autore
autoreconf      autoreconf2.59  autoreconf2.6x  autorespond
[mirror@home autoconf]$ autoreconf2.6x -iv


[mirror@home autoconf]$ autoconf2.6x --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.

仍然无法构建 autoconf,我应该怎么做才能构建它?

[mirror@home autoconf]$ ./configure
bash: ./configure: No such file or directory
[mirror@home autoconf]$ autoconf
configure.ac:29: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:117: error: possibly undefined macro: AC_PROG_GNU_M4
configure.ac:124: error: possibly undefined macro: AM_MISSING_PROG
configure.ac:187: error: possibly undefined macro: AM_PATH_LISPDIR
configure.ac:201: error: possibly undefined macro: AC_PROG_MAKE_CASE_SENSITIVE
[mirror@home autoconf]$ autoconf2.
autoconf2.59  autoconf2.6x
[mirror@home autoconf]$ autoconf2.6x

[mirror@home autoconf]$ ./configure --prefix=$HOME/ins/ins_auto


[mirror@home autoconf]$ autoreconf2.6x
configure.ac:20: error: Autoconf version 2.60 or higher is required
configure.ac:20: the top level
autom4te: /usr/bin/m4 failed with exit status: 63
aclocal: autom4te failed with exit status: 63
autoreconf2.6x: aclocal failed with exit status: 63

【问题讨论】:

  • 你为什么要运行 autoreconf?我认为cd autoconf 表示您处于未打包的 autoconf 压缩包中。只需运行配置脚本。您在这里遇到与以前相同的问题;您的系统已设置好,以便 autoreconf 查找并运行旧的 autoconf。
  • @WilliamPursell 我已经回复了上面的更多细节,但仍然失败......
  • 您是尝试从 autoconf git 存储库还是从 tarball 构建?您会发现从 tarball 构建更容易。
  • @WilliamPursell 是的,来自 autoconf git repo,然后我会检查一些标签:)

标签: linux build centos autoconf automake


【解决方案1】:

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

【讨论】:

  • 一些配置脚本使用环境 M4,所以你可能想尝试添加两者
猜你喜欢
  • 1970-01-01
  • 2010-11-10
  • 1970-01-01
  • 2020-09-16
  • 2012-03-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-01-30
相关资源
最近更新 更多