我在我的项目中使用Jansson 2.7。我发现导致构建失败的原因。

如果我尝试:

tar -zxvf jansson-2.7.tar.gz
cd jansson-2.7/
./configure
make


一切都很好。但是,如果我尝试:

tar -zxvf jansson-2.7.tar.gz
cp jansson-2.7 jansson-2.7-test -r
cd jansson-2.7-test/
./configure
make


配置将成功,但make将失败:

make
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/nick/Downloads/jansson-2.7-test/missing aclocal-1.14
/home/nick/Downloads/jansson-2.7-test/missing: line 81: aclocal-1.14: command not found
WARNING: 'aclocal-1.14' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
make: *** [aclocal.m4] Error 127


有什么线索吗?谢谢!

最佳答案

我遇到了同样的问题,只是提取并尝试运行configure / make。通过nick2100提供的链接,我发现以下命令解决了该问题:

./configure
make AUTOCONF=: AUTOHEADER=: AUTOMAKE=: ACLOCAL=:
make AUTOCONF=: AUTOHEADER=: AUTOMAKE=: ACLOCAL=: install

关于c - 如果我将目录复制到其他位置,则构建Jansson 2.7失败,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/30614637/

10-11 04:26