gpt4 book ai didi

unix - 无法构建 GNU automake

转载 作者:行者123 更新时间:2023-12-01 18:28:22 28 4
gpt4 key购买 nike

使用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/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 )。

关于unix - 无法构建 GNU automake,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39141038/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com