这是正确的论坛吗?我正在为一个名为 Qucs 的程序运行 ./bootstrap,它抱怨 VERSION
Running aclocal...
Running automake...
Running autoconf...
bootstrapping /home/lasse/Downloads/qucs-0.0.20/qucs-core
bootstrapping the qucs-core sources...
Creating aclocal.m4... sh: 1: cannot open VERSION: No such file
sh: 1: cannot open VERSION: No such file
done.
Creating config.h.in... sh: 1: cannot open VERSION: No such file
done.
Libtoolizing... libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: linking file 'm4/libtool.m4'
libtoolize: linking file 'm4/ltoptions.m4'
libtoolize: linking file 'm4/ltsugar.m4'
libtoolize: linking file 'm4/ltversion.m4'
libtoolize: linking file 'm4/lt~obsolete.m4'
done.
Creating Makefile.in(s)... sh: 1: cannot open VERSION: No such file
done.
Creating configure... done
bootstrapping /home/lasse/Downloads/qucs-0.0.20/qucs
Creating aclocal.m4... sh: 1: cannot open VERSION: No such file
fatal: not a git repository (or any of the parent directories): .git
sh: 1: cannot open VERSION: No such file
fatal: not a git repository (or any of the parent directories): .git
done.
Creating config.h.in... sh: 1: cannot open VERSION: No such file
fatal: not a git repository (or any of the parent directories): .git
done.
Running libtoolize
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: linking file 'm4/libtool.m4'
libtoolize: linking file 'm4/ltoptions.m4'
libtoolize: linking file 'm4/ltsugar.m4'
libtoolize: linking file 'm4/ltversion.m4'
libtoolize: linking file 'm4/lt~obsolete.m4'
Running automake... sh: 1: cannot open VERSION: No such file
fatal: not a git repository (or any of the parent directories): .git
done.
Running autoconf... done.
bootstrapping /home/lasse/Downloads/qucs-0.0.20/qucs-doc
Creating aclocal.m4... sh: 1: cannot open VERSION: No such file
configure.ac:15: error: AC_INIT should be called with package and version arguments
/usr/share/aclocal-1.15/init.m4:29: AM_INIT_AUTOMAKE is expanded from...
configure.ac:15: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
done.
Creating Makefile.in(s)... sh: 1: cannot open VERSION: No such file
configure.ac:15: error: AC_INIT should be called with package and version arguments
aclocal.m4:172: AM_INIT_AUTOMAKE is expanded from...
configure.ac:15: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
automake: error: autoconf failed with exit status: 1
done.
Creating configure... sh: 1: cannot open VERSION: No such file
configure.ac:15: error: AC_INIT should be called with package and version arguments
aclocal.m4:172: AM_INIT_AUTOMAKE is expanded from...
configure.ac:15: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
done.
答案1
我怀疑您克隆了 git 存储库,例如git clone https://github.com/Qucs/qucs.git
,但没有初始化子模块。
这将与它可以找到和找不到的 VERSION 文件一致。
因此,在目录中运行git submodule update --init
,然后重试。