WARNING: 'automake-1.14' is missing on your system.
阿新 • • 發佈:2018-12-10
在 Ubuntu 18 上面編譯的時候碰到了下面的錯誤資訊:
WARNING: 'automake-1.14' is missing on your system.
You should only need it if you modified 'Makefile.am' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'automake' program is part of the GNU Automake package:
<http ://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
但是檢查發現其實已經安裝了automake,只不過版本是automake-1.15.1
$ automake --version
automake (GNU automake) 1.15.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Tom Tromey < [email protected]>
and Alexandre Duret-Lutz <[email protected]>.
- 原因
- 嘗試了命令 automake,automake-1.14 和 automake-1.15 後,發現缺少命令 automake-1.14 檢查 /usb/bin 目錄下也沒有找到 automake-1.14
$ ls -al /usr/bin/ | grep automake
lrwxrwxrwx 1 root root 26 Sep 16 06:16 automake -> /etc/alternatives/automake
-rwxr-xr-x 1 root root 253317 Mar 25 23:44 automake-1.15
$ sudo ln -s /usr/bin/automake-1.15 /usr/bin/automake-1.14
$ sudo ln -s /usr/bin/aclocal-1.15 /usr/bin/aclocal-1.14
如果 解決方法一 不能解決問題的話請參考 解決方法二
雖然建立軟連結後有了命令 automake-1.14,但是編譯的時候仍然有錯誤資訊:
WARNING: 'automake-1.14' is probably too old.
You should only need it if you modified 'Makefile.am' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'automake' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
- 解決方法二
- 降級automake的版本到1.14
$ wget http://ftp.gnu.org/gnu/automake/automake-1.14.1.tar.gz
$ tar -xvf automake-1.14.1.tar.gz
$ cd automake-1.14.1
$ ./configure
$ make
$ sudo make install
降級後重新登入 Ubuntu,檢視 automake 版本
$ automake --version
automake (GNU automake) 1.14.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Tom Tromey <[email protected]>
and Alexandre Duret-Lutz <[email protected]>.
附:降級過程可能會碰到以下問題:
help2man: can’t get `–help’ info from automake-1.14
help2man: can't get `--help' info from automake-1.14
Try `--no-discard-stderr' if option outputs to stderr
make: *** [doc/automake-1.14.1] Error 255
diff --git a/Makefile b/Makefile
index e01261c..176ccba 100644
--- a/Makefile
+++ b/Makefile
@@ -3704,7 +3704,7 @@ doc/aclocal.1 doc/automake.1:
doc/aclocal-$(APIVERSION).1: $(aclocal_script) lib/Automake/Config.pm
$(update_mans) aclocal-$(APIVERSION)
doc/automake-$(APIVERSION).1: $(automake_script) lib/Automake/Config.pm
- $(update_mans) automake-$(APIVERSION)
+ $(update_mans) automake-$(APIVERSION) --no-discard-stderr