为什么我未能建立与autoconf2.6x autoconf的,其版本较新,好歹2.6 [英] why i failed to build autoconf with autoconf2.6x, its version is newer than 2.6 anyhow

查看:334
本文介绍了为什么我未能建立与autoconf2.6x autoconf的,其版本较新,好歹2.6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的系统是基于CentOS的。

我尝试建立autoconf的原因是,有人告诉我,我可以尝试建立它是为了解决其他的问题,你会发现这个链接<一个动机href=\"http://stackoverflow.com/questions/12136934/why-autogen-sh-failed-even-with-the-correct-autoconf#comment16480229_12136934\">why autogen.sh即使有正确的autoconf失败了?

  [镜@家汽车] $ CD的autoconf /
[镜子@家的autoconf] $ LS
作者cfg.mk ChangeLog.3 COPYINGv3 LIB人自述黑客
斌ChangeLog.0 configure.ac DOC M4新闻测试
BUGS ChangeLog.1 COPYING GNUmakefile maint.mk自述THANKS
打造奥克斯ChangeLog.2 COPYING.EXCEPTION黑客入侵Makefile.am README-αTODO
[镜子@家的autoconf] $ autoreconf -IV
autoreconf:进入目录`'。
autoreconf:configure.ac:不使用的Gettext
autoreconf:运行:aclocal会-I M4
configure.ac:20:错误:Autoconf的版本2.60或更高
configure.ac:20:顶层
autom4te:在/ usr / bin中/ M4失败,退出状态:63
aclocal会:autom4te失败,退出状态:63
autoreconf:aclocal会失败,退出状态:63

//我已经autoreconf2.6x我的系统上,其版本SI高于2.6,但仍然未能建立,为什么?

  [镜@家的autoconf] $ AUTORE
autoreconf autoreconf2.59 autoreconf2.6x autorespond
[镜子@家的autoconf] $ AUTORE
autoreconf autoreconf2.59 autoreconf2.6x autorespond
[镜子@家的autoconf] $ autoreconf2.6x -IV
[镜子@家的autoconf] $ autoconf2.6x --version
autoconf的(GNU的Autoconf)2.63
版权所有(C)2008自由软件基金会
在GPLv2许可证+:GNU GPL 2或更高版本
&LT; HTTP://gnu.org/licenses/old-licenses/gpl-2.0.html>
这是自由软件:您可以自由修改和重新发布。
没有担保,在法律允许的范围内。由David J.麦肯齐和阿基姆Demaille。

仍然未能建立autoconf的,我应该以建设怎么做呢?

  [镜@ home的autoconf的] $的./configure
bash下的./configure:没有这样的文件或目录
[镜子@ home的autoconf的] $的autoconf
configure.ac:29:错误:可能未定义的宏:AM_INIT_AUTOMAKE
      如果此令牌等是合法的,请使用m4_pattern_allow。
      参见Autoconf的文档。
configure.ac:117:错误:可能未定义的宏:AC_PROG_GNU_M4
configure.ac:124:错误:可能未定义的宏:AM_MISSING_PROG
configure.ac:187:错误:可能未定义的宏:AM_PATH_LISPDIR
configure.ac:201:错误:可能未定义的宏:AC_PROG_MAKE_CASE_SENSITIVE
[镜子@家的autoconf] $ autoconf2。
autoconf2.59 autoconf2.6x
[镜子@家的autoconf] $ autoconf2.6x[镜子@ home的autoconf的] $的./configure - preFIX = $ HOME / INS / ins_auto
[镜子@家的autoconf] $ autoreconf2.6x
configure.ac:20:错误:Autoconf的版本2.60或更高
configure.ac:20:顶层
autom4te:在/ usr / bin中/ M4失败,退出状态:63
aclocal会:autom4te失败,退出状态:63
autoreconf2.6x:aclocal会失败,退出状态:63


解决方案

您已经安装的autoconf的两个版本,并在 aclocal会运行 autom4te ,这将启动旧的。你有一个 autom4te-2.6倍在你的路径?如果是这样,将出口AUTOM4TE = autom4te2.6x 运行前 autoreconf-2.64

my system is centos based.

the reason i try to build autoconf is that someone told me i can try to build it in order to solve the other problem, you may find the motivation with this link 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

// i have autoreconf2.6x on my system, its version si higher than 2.6, but still failed to build, why?

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

still failed to build autoconf, what i should do in order to build it?

[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

解决方案

You have two versions of autoconf installed, and when aclocal runs autom4te, this launches the old one. Do you have a autom4te-2.6x in your path? If so, set export AUTOM4TE=autom4te2.6x before running autoreconf-2.64.

这篇关于为什么我未能建立与autoconf2.6x autoconf的,其版本较新,好歹2.6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆