我正在尝试编译mate 桌面
但是当我运行./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?
我需要做什么才能消除这些错误?我尝试安装最新版本的 inittool、glib、gtk、yelp 等...但仍然收到宏错误。
答案1
默认情况下,aclocal
应该在 /usr/share/aclocal 目录中搜索宏 - 如下选项所示--print-ac-dir
:
$ aclocal --print-ac-dir
/usr/share/aclocal
但是,如果由于某种原因你无法在那里搜索,你可以通过ACLOCAL_FLAGS
环境变量添加明确的搜索路径,例如
ACLOCAL_FLAGS="-I /usr/share/aclocal" ./autogen.sh
请注意, github 上的mate-common
和gtk-doc
安装都默认安装它们的 m4 宏,/usr/local/share/aclocal
即使使用“工作”,默认情况下也不会搜索到这些宏aclocal
;您可以用相同的方式添加此路径,即
ACLOCAL_FLAGS="-I /usr/share/aclocal -I /usr/local/share/aclocal" ./autogen.sh