Hi正在尝试在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有人能帮我解决这个问题吗?谢谢您:)
发布于 2018-08-16 12:35:06
您的脚本在autoconf步骤中失败。
来自曼·奥康夫
提要 自动选择..。模板-文件描述 如果给出模板文件,则从模板生成配置脚本;如果存在,则生成“configure.ac”,或者生成“配置. if”。如果给出模板文件,则将输出发送到标准输出,否则发送到“配置”中。
如您所见,autoconf要么期待一个TEMPLATE-FILE,要么正在寻找configure.ac或configure.in。
由于两者都没有给出,所以您的脚本正在失败。
https://stackoverflow.com/questions/51876743
复制相似问题