: aclocal-1.15:未找到命令 WARNING: ‘aclocal-1.15‘ is missing on your system.

在Ubuntu22.4系统中,用户在编译时遇到aclocal-1.15命令未找到的问题。为解决此问题,用户尝试下载并安装automake-1.15.1版本,但在安装过程中遇到了make错误。用户更新了Makefile以添加--no-discard-stderr选项,并设置了路径环境变量,最后成功安装了automake-1.15.1并验证了版本。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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:$PATH

4、查看版本
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>.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值