autoreconf失败,出现“自动恢复”;可能未定义的宏:AM“u PATH”u GLIB“u 2”u 0“;
修改时,我从autoreconf失败,出现“自动恢复”;可能未定义的宏:AM“u PATH”u GLIB“u 2”u 0“;,c,autoconf,automake,slurm,autoreconf,C,Autoconf,Automake,Slurm,Autoreconf,修改时,我从autoreconf中得到此错误: $ autoreconf configure.ac:240: warning: macro 'AM_PATH_GLIB_2_0' not found in library configure.ac:246: warning: macro 'AM_PATH_GTK_2_0' not found in library configure.ac:240: error: possibly undefined macro: AM_PATH_GLIB_2_0
autoreconf
中得到此错误:
$ autoreconf
configure.ac:240: warning: macro 'AM_PATH_GLIB_2_0' not found in library
configure.ac:246: warning: macro 'AM_PATH_GTK_2_0' not found in library
configure.ac:240: error: possibly undefined macro: AM_PATH_GLIB_2_0
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:246: error: possibly undefined macro: AM_PATH_GTK_2_0
autoreconf: /usr/bin/autoconf failed with exit status: 1
configure.ac
中的行是:
AM_PATH_GLIB_2_0([2.7.1], [ac_glib_test="yes"], [ac_glib_test="no"], [gthread])
这是我正在使用的autoconf/automake工具版本的问题,还是其他问题
谢谢。我在Centos8做了以下工作:
sudo find /usr /opt -name "*.m4" -exec grep -H AM_PATH_GLIB_2_0 {} \;
查找包含glib-2.0.m4的目录
/usr/share/aclocal/glib-2.0.m4:dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
发行
export ACLOCAL_PATH=/usr/share/aclocal
解决了问题您需要安装glib开发包