【发布时间】: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 测试脚本。