我正在尝试使用 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 …
我使用的是 Linux Mint 18 Cinnamon 64 位。
我正准备从源代码编译file-roller
被称为GNOME 的存档管理器。
但是在运行时:
./autogen.sh
Run Code Online (Sandbox Code Playgroud)
缺少以下 M4 宏:
Run Code Online (Sandbox Code Playgroud)Checking for required M4 macros... yelp.m4 not found ***Error***: some autoconf macros required to build Package were not found in your aclocal path, or some forbidden macros were found. Perhaps you need to adjust your ACLOCAL_PATH?
刚刚安装完 ubuntu 16.04.1 桌面版。现在我正在尝试安装 m4。到目前为止安装m4如下。
现在当我输入:
m4 --version
Run Code Online (Sandbox Code Playgroud)
它仍然说:
The program 'm4' is currently not installed....
Run Code Online (Sandbox Code Playgroud)
我错过了什么步骤?
注意:我在这台机器上没有互联网访问权限。
是否可以定义一个 m4 宏(不带参数),在第一次调用时扩展为 1,在第二次调用时扩展为 2,依此类推?换句话说,它应该有内部存储器来存储它被调用的次数。这可以做到吗?