我在我的项目中使用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
makeConfigure将成功,但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有什么线索吗?谢谢!
发布于 2016-12-24 13:28:43
我在解压缩并尝试运行configure/make时遇到了同样的问题。按照nick2100提供的链接,我发现以下命令解决了这个问题:
./configure
make AUTOCONF=: AUTOHEADER=: AUTOMAKE=: ACLOCAL=:
make AUTOCONF=: AUTOHEADER=: AUTOMAKE=: ACLOCAL=: installhttps://stackoverflow.com/questions/30614637
复制相似问题