gpt4 book ai didi

c - 如果我将目录复制到其他地方,构建 Jansson 2.7 会失败

转载 作者:行者123 更新时间:2023-11-30 17:13:44 25 4
gpt4 key购买 nike

我在我的项目中使用 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

Configure会成功,但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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com