【问题标题】:Unable to build GNU automake无法构建 GNU automake
【发布时间】:2017-01-01 15:15:02
【问题描述】:

使用wget http://ftp.gnu.org/gnu/automake/automake-1.15.tar.gz安装了automake

./configure --prefix=$HOME/local 适合我。

在这一步之后,我跑了make,但它失败了:

  GEN      bin/automake
  GEN      bin/aclocal
  GEN      t/ax/shell-no-trail-bslash
  GEN      t/ax/cc-no-c-o
  GEN      runtest
  GEN      lib/Automake/Config.pm
  GEN      doc/aclocal-1.15.1
  GEN      doc/automake-1.15.1
help2man: can't get `--help' info from automake-1.15
Try `--no-discard-stderr' if option outputs to stderr
make: *** [doc/automake-1.15.1] Error 2

我不知道该怎么做!

另一件事是我尝试运行 bin/aclocal 并显示:

Can't locate Automake/Config.pm in @INC (@INC contains: /home/v/varun/local/share/automake-1.15 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at bin/aclocal line 37.
BEGIN failed--compilation aborted at bin/aclocal line 37.

请帮忙!

您还需要其他问题吗?

【问题讨论】:

    标签: unix gnu automake


    【解决方案1】:

    很可能,您必须降级您的Perl 版本,或者更新您尝试构建的automake 版本:

    help2man 程序尝试运行automake-1.15 --help。如果失败,那么您将看到上面的错误。就我而言,最初的失败是这样的:

    $ ./1.15-r0/build/t/wrap/automake-1.15 --help
    Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /home/user/proj/yocto/test/build/tmp/work/x86_64-linux/automake-native/1.15-r0/build/bin/automake line 3939.
    Compilation failed in require at ./1.15-r0/build/t/wrap/automake-1.15 line 27.
    

    这是由于 automake 版本 1.15 与最近的 Perl 版本不兼容(请参阅 this bug)。

    【讨论】:

    • 我正在安装 automake-1.16 并遇到了同样的问题。我不能使用 GIT 版本,因为我的 autoreconf 不起作用(需要 aclocal ...)我的 perl 版本很旧:v5.16.3(版权所有 1987-2012)
    • 更新:通过将 doc/help2man 从 GIT 复制到 1.16 版本,我能够制作和安装。
    【解决方案2】:

    perl-Thread-Queue.noarch 需要;

    如果你的操作系统是,试试这个:

    yum install perl-Thread-Queue.noarch
    

    【讨论】:

    • 我在 Debian 测试中遇到类似错误,安装 libthread-queue-any-perl 似乎没有明显帮助。
    • Thread::Queue 是自 5.8 版以来的 Perl 核心模块,因此您很可能已经拥有该模块。原始问题的另一个可能根本原因是automake 1.15 版中的错误,请参阅我的答案了解详细信息。
    • 这对我尝试在 CentOS 7 上使用 perl 5.16 编译 automakte 1.16.3 有效。
    猜你喜欢
    • 2019-09-07
    • 2016-01-06
    • 1970-01-01
    • 2013-08-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-05
    • 1970-01-01
    相关资源
    最近更新 更多