mur*_*d99 5 compiling autoconf m4
我正在尝试使用 1.4.17 tarball 在我的 Chromebook 上安装 GNU M4,但是当我运行时./configure,make我收到与 相关的错误aclocal,这显然是 GNU Automake 软件包的一部分。我得到的确切错误是
WARNING: 'aclocal-1.14' 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: *** [aclocal.m4] Error 127
Run Code Online (Sandbox Code Playgroud)
我知道第一部分只是一个警告,但名称表明错误是相关的。
我还尝试为 创build一个空文件aclocal.m4,但收到一条不同的消息:有关automake-1.14丢失和的警告make: *** [Makefile.in] Error 1
不幸的是,根据官方页面,Automake 需要 Autoconf,而 Autoconf 又需要 M4。我该怎么做才能安装 M4 并避免这个问题?
小智 1
m4中及后续的配置文件make既不需要 m4 也不需要 aclocal,除非它提到的文件之一已更改,但情况可能并非如此。
所以可能的原因是(我上周遇到了这个)时间戳问题。
您是否将提取的存档复制到较新的目录中?系统时钟是否正确?
我在系统上构建了 m4(相同版本),并删除了 aclocal 和 m4,但如果acinclude.m4和configure.ac较旧 ( touch --date="last friday" configure.ac),它会返回相同的错误。
删除该目录,重新解压(可能使用 tar 的-m选项)并重试。