在执行aclocal时,出现如下错误:
configure.ac:31:
error: Autoconf version 2.62 or higher is required
/usr/share/aclocal-1.11/init.m4:26:
AM_INIT_AUTOMAKE is expanded from...
configure.ac:31:
the top level
autom4te:
/usr/bin/m4 failed with exit status: 63
aclocal:
autom4te failed with exit status: 63
autoreconf:
aclocal failed with exit status: 63
系统里安装版本为autoconf-2.61,而且是手动安装的,于是在终端输入
sudo apt-get install autoconf
在从源里安装autoconf-2.68
输入aclocal,报相同错误,
原因:此时系统里装了两套autoconf, 即autoconf-2.61 autoconf-2.68
每次在执行aclocal时,都call autoconf-2.61的工具,即/usr/local/bin/autoconf
解决:进入autoconf-2.61的源码目录,
cd software/autoconf-2.61
执行 sudo make uninstall
就将安装文件都卸载掉了
重启终端, autoconf -V
其版本为autoconf-2.68
执行aclocal
正常
没有评论:
发表评论