如何修复这些 M4 宏错误?

j0h*_*j0h 4 compiling mate software-installation autoconf

我正在尝试编译mate-desktop 但是当我运行./autogen.sh脚本时会出现这些错误

Checking for required M4 macros...
  libtool.m4 not found
  glib-gettext.m4 not found
  intltool.m4 not found
  pkg.m4 not found
  gtk-doc.m4 not found
  yelp.m4 not found
***Error***: some autoconf macros required to build mate-desktop
  were not found in your aclocal path, or some forbidden
  macros were found.  Perhaps you need to adjust your
  ACLOCAL_FLAGS?
Run Code Online (Sandbox Code Playgroud)

我需要做什么才能摆脱这些错误?我厌倦了安装最新版本的 inittool、glib、gtk、yelp 等……但我仍然收到宏错误。

ste*_*ver 8

默认情况下,aclocal 应该在 /usr/share/aclocal 目录中搜索宏 - 如--print-ac-dir选项所示:

$ aclocal --print-ac-dir 
/usr/share/aclocal
Run Code Online (Sandbox Code Playgroud)

但是,如果由于某种原因您的搜索失败,您可以通过ACLOCAL_FLAGS环境变量添加显式搜索路径,例如

ACLOCAL_FLAGS="-I /usr/share/aclocal" ./autogen.sh
Run Code Online (Sandbox Code Playgroud)

请注意,来自 github的mate-commongtk-doc安装都默认安装他们的 m4 宏/usr/local/share/aclocal,即使使用“working”,默认情况下也不会搜索aclocal;您可以以相同的方式添加此路径,即

ACLOCAL_FLAGS="-I /usr/share/aclocal -I /usr/local/share/aclocal" ./autogen.sh
Run Code Online (Sandbox Code Playgroud)