: aclocal-1.15:未找到命令 WARNING: ‘aclocal-1.15‘ is missing on your system.
ubuntu22.4 编译时出现:
: aclocal-1.15:未找到命令
WARNING: 'aclocal-1.15' is missing on your system.You should only need it if you modified 'acinclude.m4' or'configure.ac' or m4 files included by 'configure.ac'.The 'aclocal' 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/>
make: *** [Makefile:924:aclocal.m4] 错误 127
1、查看版本
```c
aclocal --version
aclocal (GNU automake) 1.16.5
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <https://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 <tromey@redhat.com>and Alexandre Duret-Lutz <adl@gnu.org>.
2、下载安装包```c
wget https://ftp.gnu.org/gnu/automake/automake-1.15.1.tar.gz
3、安装
cd automake-1.15
sudo ./configure --prefix=/usr/local/automake-1.15.1
make
sudo make install
编译出错
make GEN doc/aclocal-1.15.1
help2man: can't get `--help' info from aclocal-1.15
Try `--no-discard-stderr' if option outputs to stderr
make: *** [Makefile:3685:doc/aclocal-1.15.1] 错误 255
添加 --no-discard-stderr
3684 doc/aclocal-$(APIVERSION).1: $(aclocal_script) lib/Automake/Config.pm
3685 $(update_mans) aclocal-$(APIVERSION)
3686 doc/automake-$(APIVERSION).1: $(automake_script) lib/Automake/Config.pm
3687 $(update_mans) automake-$(APIVERSION) --no-discard-stderr ```export PATH=/usr/local/automake-1.15.1/bin:$PATH4、查看版本
aclocal --version```c
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 <tromey@redhat.com>and Alexandre Duret-Lutz <adl@gnu.org>.
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
