无法建立GNU automake [英] Unable to build GNU automake
问题描述
使用wget http://ftp.gnu.org/gnu/automake/automake-1.15.tar.gz
./configure --prefix=$HOME/local
对我来说很好.
此步骤之后,我运行了make
,但失败了:
After this step, I ran make
and it fails:
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
,它说:
Another thing is I try to run bin/aclocal
and it says:
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
版本:
Most likely, you must either downgrade your Perl
version, or update the version of automake
that you're trying to build:
help2man
程序尝试运行automake-1.15 --help
.如果失败,那么您将看到上面的错误.就我而言,原始故障看起来像这样:
The help2man
program tries to run automake-1.15 --help
. If this fails, then you will see the error above. In my case, the original failure looked like this:
$ ./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 is caused by an incompatibility between automake version 1.15 and a too recent Perl version (see this bug).
这篇关于无法建立GNU automake的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!