Compilation 为什么我会出现这个局部错误?

Compilation 为什么我会出现这个局部错误?,compilation,autotools,autoconf,automake,Compilation,Autotools,Autoconf,Automake,我试图从Ubuntu 13.04的源代码编译libbsd。我使用工具链进行交叉编译,但automake在本地机器上。我在路径和所有内容中都有aclocal-1.13,但我仍然收到这个错误。我试过查他们,但找不到任何线索。这是怎么回事 <...> config.status: executing libtool commands CDPATH="${ZSH_VERSION+.}:" && cd .. && /bin/bash /home/me/libbs

我试图从Ubuntu 13.04的源代码编译
libbsd
。我使用工具链进行交叉编译,但automake在本地机器上。我在路径和所有内容中都有
aclocal-1.13
,但我仍然收到这个错误。我试过查他们,但找不到任何线索。这是怎么回事

<...>
config.status: executing libtool commands
CDPATH="${ZSH_VERSION+.}:" && cd .. && /bin/bash /home/me/libbsd/build-aux/missing aclocal-1.13 -I m4
error: cannot get project version.
configure.ac:9: error: AC_INIT should be called with package and version arguments
/usr/share/aclocal-1.13/init.m4:23: AM_INIT_AUTOMAKE is expanded from...
configure.ac:9: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal-1.13: error: echo failed with exit status: 1
make: *** [../aclocal.m4] Error 1

config.status:执行libtool命令
CDPATH=“${ZSH_VERSION+.}:&&cd..&&/bin/bash/home/me/libbsd/build aux/missing aclocal-1.13-I m4
错误:无法获取项目版本。
configure.ac:9:error:ac_INIT应使用包和版本参数调用
/usr/share/aclocal-1.13/init.m4:23:AM_init_AUTOMAKE从。。。
配置。ac:9:顶层
自动M4TE:/usr/bin/m4失败,退出状态:1
aclocal-1.13:错误:回显失败,退出状态:1
make:**[../aclocal.m4]错误1

非常感谢您的帮助。

此处的错误是
configure。ac:9:error:ac_INIT应使用包和版本参数调用。
。 出现此错误是因为在configure.ac的第9行中没有将包和版本参数传递给ac_INIT

具体信息可在此处找到:

If your configure.ac has:

AC_INIT([src/foo.c])
AM_INIT_AUTOMAKE([mumble], [1.5])
您应该按如下方式更正它:

AC_INIT([mumble], [1.5])
AC_CONFIG_SRCDIR([src/foo.c])
AM_INIT_AUTOMAKE

尽管围绕它的其他注释也很重要。

发布的tarballs应该有一个准备运行的
configure
脚本,但您不应该在系统中需要autoconf/automake。如果您直接从源代码存储库签出,那么您最好准备好进行一些维护,因为configure.ac似乎正在使用不推荐/过时的调用。尝试运行
autoscan
和/或
autoupdate
查看它是否告诉您如何解决问题。