标签: m4

如何在 Linux 上安装 M4,避免 Automake 和 Autoconf 的依赖循环?

我正在尝试使用 1.4.17 tarball 在我的 Chromebook 上安装 GNU M4,但是当我运行时./configuremake我收到与 相关的错误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 …

compiling autoconf m4

5
推荐指数
1
解决办法
1965
查看次数

正在检查所需的 M4 宏... yelp.m4 未找到

我使用的是 Linux Mint 18 Cinnamon 64 位。

我正准备从源代码编译file-roller被称为GNOME 的存档管理器

但是在运行时:

./autogen.sh
Run Code Online (Sandbox Code Playgroud)

缺少以下 M4 宏:

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?
Run Code Online (Sandbox Code Playgroud)

compiling macro m4

4
推荐指数
1
解决办法
3816
查看次数

手动安装后找不到 m4 命令

刚刚安装完 ubuntu 16.04.1 桌面版。现在我正在尝试安装 m4。到目前为止安装m4如下。

  1. 下载m4-1.4.18.tar.gz
  2. tar -xvzf m4-1.4.18.tar.gz
  3. cd m4-1.4.18
  4. ./configure --prefix=/usr/local/m4
  5. 制作
  6. 须藤制作安装

现在当我输入:

m4 --version
Run Code Online (Sandbox Code Playgroud)

它仍然说:

The program 'm4' is currently not installed....
Run Code Online (Sandbox Code Playgroud)

我错过了什么步骤?

注意:我在这台机器上没有互联网访问权限。

ubuntu software-installation m4

2
推荐指数
1
解决办法
2万
查看次数

全局(非易失性)计数器的 m4 宏实现

是否可以定义一个 m4 宏(不带参数),在第一次调用时扩展为 1,在第二次调用时扩展为 2,依此类推?换句话说,它应该有内部存储器来存储它被调用的次数。这可以做到吗?

macro m4

1
推荐指数
1
解决办法
365
查看次数

标签 统计

m4 ×4

compiling ×2

macro ×2

autoconf ×1

software-installation ×1

ubuntu ×1