首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如果我将目录复制到其他地方,构建Jansson 2.7将失败

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

Stack Overflow用户
提问于 2015-06-03 16:24:37
回答 1查看 206关注 0票数 0

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

如果我尝试:

代码语言:javascript
复制
tar -zxvf jansson-2.7.tar.gz
cd jansson-2.7/
./configure
make

一切都很好。但如果我试一下:

代码语言:javascript
复制
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将失败:

代码语言:javascript
复制
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

有什么线索吗?谢谢!

EN

回答 1

Stack Overflow用户

发布于 2016-12-24 13:28:43

我在解压缩并尝试运行configure/make时遇到了同样的问题。按照nick2100提供的链接,我发现以下命令解决了这个问题:

代码语言:javascript
复制
./configure 
make AUTOCONF=: AUTOHEADER=: AUTOMAKE=: ACLOCAL=: 
make AUTOCONF=: AUTOHEADER=: AUTOMAKE=: ACLOCAL=: install
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30614637

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档