Intltool:Automake 版本不匹配

Intltool:Automake 版本不匹配

我正在尝试安装 intltool,但出现此错误:

error: version mismatch.  This is Automake 1.14.1,
configure.ac:7: but the definition used by this AM_INIT_AUTOMAKE
configure.ac:7: comes from Automake 1.14.  You should recreate
configure.ac:7: aclocal.m4 with aclocal and run automake again."

之前我遇到 1.11.1 的错误,然后我删除aclocal.m4并运行 aclocal,它再次出现错误,现在显然是 1.14。但我仍然收到错误。我该如何修复它?

    dnl Process this file with autoconf to create configure.
AC_PREREQ([2.53])

AC_INIT([intltool], [0.50.2])
AC_CONFIG_SRCDIR([intltoolize.in])

AM_INIT_AUTOMAKE([foreign])

pkgdatadir='${datadir}'"/${PACKAGE}"
AC_SUBST(pkgdatadir) dnl automake does not need this, but libtoolize does
aclocaldir='${datadir}'/aclocal
AC_SUBST(aclocaldir)

AC_PATH_PROG(PERL, perl)
if test -z "$PERL"; then
   AC_MSG_ERROR([perl not found])
fi
AC_MSG_CHECKING([for perl >= 5.8.1])
$PERL -e "use 5.8.1;" > /dev/null 2>&1
if test $? -ne 0; then
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
else
   PERL_VERSION="`$PERL -e \"printf '%vd', $^V\"`"
   AC_MSG_RESULT([$PERL_VERSION])
fi
AC_MSG_CHECKING([for XML::Parser])
if `$PERL -e "require XML::Parser" 2>/dev/null`; then
   AC_MSG_RESULT([ok])
else
   AC_MSG_ERROR([XML::Parser perl module is required for intltool])
fi
AC_PATH_PROG(BZR, bzr)


AC_CONFIG_FILES([
Makefile
doc/Makefile
intltoolize
tests/Makefile
tests/cases/Makefile
tests/results/Makefile
tests/selftest.pl
])

AC_OUTPUT

答案1

我在 Ubuntu 14.04 上编译 libx11 时遇到了同样的错误,我通过运行autoreconf然后重新运行来修复它./configure && make

autoreconf
./configure
make

相关内容