2016-08-25 146 views
4

使用wget http://ftp.gnu.org/gnu/automake/automake-1.15.tar.gz無法建立GNU的automake

./configure --prefix=$HOME/local工作正常,我安裝的automake。

這一步後,我跑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. 

請幫幫忙!

您是否需要其他問題?

回答

0

perl-Thread-Queue.noarch需要;

,如果你的操作系統是,試試這個:

yum install perl-Thread-Queue.noarch 
+0

不幸的是我沒有root權限...... –

+0

我在Debian測試中發現了一個類似的錯誤,並且安裝了libthread-queue-any-perl似乎沒有明顯的幫助。 – jeremiah

+0

'Thread :: Queue'是從5.8版本開始的'Perl'核心模塊,所以很有可能你已經有了這個模塊。原始問題的另一個可能的根源是'automake'版本1.15中的錯誤,請參閱我的答案以獲取詳細信息。 –

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/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)之間的不兼容引起的。

+1

切換到automake-1.15.1爲我工作。 – scai