aclocal-1.15: command not found
下载了coreutil 源代码
apt source coreutils
1. 运行./configure 通过
2. 运行make 失败
make
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/hjj/source/coreutils-8.30/build-aux/missing aclocal-1.15 -I m4
/home/hjj/source/coreutils-8.30/build-aux/missing: line 81: aclocal-1.15: command not found
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/>
Makefile:6034: recipe for target 'aclocal.m4' failed
Makefile:6033: *** [aclocal.m4] Error 127
原因分析: 一般configure 成功, make 失败是比较少见的. 它说aclocal-1.15 命令没有发现
查我的aclolal 版本, 是 aclocal-1.16, 比所要求的1.15 版本高. 所以需要重新生成 configure 文件.
3. 解决办法: 重新生成configure 文件
$ autoreconf -ivf
其中 -i install missing
-v verbose
-f force, 认为所有文件都过时而重新生成脚本.
然后再重新执行 ./configure 再make 即可通过!