执行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和重新安装并没有解决问题,我没有时间调试,任何想法?
答案 0 :(得分:0)
删除linux / GNU ubuntu上的/usr/local/bin/aclocal
并重新安装解决了这个问题,但原因我不知道。