unix – 无法构建GNU automake

使用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.

请帮忙!

你还需要其他问题吗?

最佳答案 最有可能的是,您必须降级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/arost/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).

点赞