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

2019-09-22 04:03发布

我的系统是基于CentOS的。

我尝试建立autoconf的原因是,有人告诉我,我可以尝试建立它是为了解决其他的问题,你会发现这个链接的动机为何autogen.sh用正确的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

Answer 1:

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



文章来源: why i failed to build autoconf with autoconf2.6x, its version is newer than 2.6 anyhow