【发布时间】:2017-11-09 01:14:05
【问题描述】:
在执行autoreconf -i 时返回以下错误
/usr/local/bin/aclocal: 14: /usr/local/bin/aclocal: Syntax error: word unexpected (expecting ")")
autoreconf: aclocal failed with exit status: 2
aclocal 执行失败,例如 aclocal --version 返回错误:
/usr/local/bin/aclocal: line 14: syntax error near unexpected token `[AC_CONFIG_MACRO_DIRS],'
/usr/local/bin/aclocal: line 14: `m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])'
在机器上4.10.0-38-generic #42-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
去掉automake、autoconf,重新安装都不能解决问题,我也没有时间调试,有什么想法吗?
【问题讨论】:
-
添加一些上下文,例如
configure.ac的相关部分可能会给出一些提示。这似乎是由configure.ac生成的aclocal.m4错误
标签: linux ubuntu autotools autoconf building