我正在尝试编译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等.但我仍然会得到宏错误。
发布于 2015-09-13 14:32:10
默认情况下,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.shhttps://askubuntu.com/questions/673502
复制相似问题