【问题标题】:Autoconf installed but doesn't work (ubuntu)Autoconf 已安装但不起作用(ubuntu)
【发布时间】:2016-08-09 18:17:20
【问题描述】:

我正在尝试安装 GNU automake。运行 ./configure 时,我在终端中收到以下错误消息:

    checking whether autoconf is installed... yes
    checking whether autoconf works... no
    configure: error: The installed version of autoconf does not work.
    Please check config.log for error messages before this one

查看 config.log 我无法弄清楚问题出在哪里。我猜它与tex有关,但我不确定它甚至指的是什么程序。我安装了 TexStudio 并没有解决它。 日志文件粘贴在下面:

    configure:2784: checking for tex
    configure:2814: result: no
    configure:2822:  --version </dev/null
    ./configure: line 2823: --version: command not found
    configure:2825: $? = 127
    configure:2843: checking for yacc
    configure:2859: found /usr/local/bin/yacc
    configure:2870: result: yacc
    configure:2886: checking for lex
    configure:2916: result: no
    configure:2886: checking for flex
    configure:2902: found /usr/local/bin/flex
    configure:2913: result: flex
    configure:2934: checking whether autoconf is installed
    configure:2939: autoconf --version
    Autoconf version 2.10
    configure:2942: $? = 0
    configure:2950: result: yes
    configure:2957: checking whether autoconf works
    configure:2964: cd conftest && autoconf -o /dev/null conftest.ac
    Usage: autoconf [-h] [--help] [-m dir] [--macrodir=dir]
           [-l dir] [--localdir=dir] [--version] [template-file]
   configure:2967: $? = 1
   configure:2976: result: no
   configure:2979: error: The installed version of autoconf does not work.
          Please check config.log for error messages before this one.

【问题讨论】:

    标签: gnu autoconf automake


    【解决方案1】:

    正如 Diego 所说,如果您从存储库安装 autoconf,它将安装 2.68 版本。出于某种原因,您可能安装了 2.13 版。

    如果是这种情况,请删除旧版本并安装默认版本:

    sudo apt-get remove autoconf2.13 &amp;&amp; sudo apt-get install autoconf

    【讨论】:

      【解决方案2】:

      Autoconf 2.1 非常老了,与当前版本(2.69,称为“2.5 系列”)有明显不同的语义。

      Ubuntu 似乎有 separate packages 用于 autoconf 2.1 和 2.6x,但我不确定他们如何在两者之间进行选择。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-12-07
        • 2019-05-20
        • 1970-01-01
        • 2018-04-08
        • 2014-06-21
        • 1970-01-01
        • 2012-08-11
        • 1970-01-01
        相关资源
        最近更新 更多