【问题标题】:error: autoconf failed with exit status: 1错误:autoconf 失败,退出状态:1
【发布时间】:2018-08-16 20:35:06
【问题描述】:

您好,我正在尝试在 centos 7.5 中构建 shell 脚本,但由于以下错误而停止

错误:

[root@localhost unimrcp-1.5.0]# ./bootstrap
+ libtoolize --force --automake --copy
+ aclocal -I build/acmacros
+ automake --foreign --add-missing --copy
Usage: autoconf [-h] [--help] [-m dir] [--macrodir=dir]
       [-l dir] [--localdir=dir] [--version] [template-file]
automake: error: autoconf failed with exit status: 1
+ autoconf
autoconf: configure.in: No such file or directory
+ rm -rf autom4te.cache

以下是我尝试执行的 shell 脚本。 bootstrap.sh

#! /bin/sh

case `uname` in
    Darwin) libtoolize=glibtoolize ;;
    *)      libtoolize=libtoolize  ;;
esac

set -x
$libtoolize --force --automake --copy
aclocal -I build/acmacros
automake --foreign --add-missing --copy
autoconf

rm -rf autom4te.cache

谁能帮我解决这个问题? 谢谢你:)

【问题讨论】:

  • 也许可以避免使用bootstrap 并首先尝试autoupdate。然后使用libtoolize,后跟autoreconf。我发现它适用于大多数操作系统,包括像 Fedora 15 这样的旧操作系统和像 Solaris 和 AIX 这样的奇怪操作系统。另请参阅this autoconf 测试脚本。

标签: linux centos7


【解决方案1】:

您的脚本在autoconf 步骤失败。

来自man autoconf

概要

autoconf [选项]... [模板文件]

说明

如果给定,则从 TEMPLATE-FILE 生成配置脚本,或者 “configure.ac”(如果存在),否则为“configure.in”。输出发送到 如果给出了 TEMPLATE-FILE,则为标准输出,否则为“配置”。

如您所见,autoconf 要么期待 TEMPLATE-FILE,要么正在寻找 configure.acconfigure.in

由于两者都没有给出,所以你的脚本失败了。

【讨论】:

  • 您好,这实际上对我有很大帮助,非常感谢,还有一件要做的事情是 autoconf 应该是 2.59 或更高,但我使用的是 2.13。
猜你喜欢
  • 2020-05-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-11-02
  • 1970-01-01
  • 2017-05-07
  • 1970-01-01
相关资源
最近更新 更多