首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >制作过程中纳米打中问题的编译

制作过程中纳米打中问题的编译
EN

Stack Overflow用户
提问于 2018-05-24 22:01:30
回答 1查看 413关注 0票数 0

我正在尝试编译nano并遇到一些问题。

详细信息如下-我无法更改的版本(在s390体系结构上编译并且无法访问其他版本):

  • 纳米源版本2.9.7
  • 使用autoconf版本2.62
  • 使用自动1.10版
  • 更改了配置脚本,因此它通过更改配置行am__api_version='1.10'寻找工具版本1.10而不是1.15

我运行configure,然后运行make。在运行make时,我得到以下错误:

代码语言:javascript
复制
make
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /u/user/source/nano-2.9.7/missing aclocal-1.10 -I m4
main::scan_file() called too early to check prototype at /workarea/tools/automake/bin/aclocal-1.10 line 604.
configure.ac:27: error: Autoconf version 2.69 or higher is required
configure.ac:27: the top level
autom4te: /usr/local/bin/m4 failed with exit status: 63
aclocal-1.10: autom4te failed with exit status: 63
WARNING: 'aclocal-1.10' is probably too old.
         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/>
FSUM8226 make: Error code 63 

我注意到第一行上写着:CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /u/user/source/nano-2.9.7/missing aclocal-1.10 -I m4我不知道如何读取这个错误,因为aclocal-1.10在我的路径上并安装了。当我从bash运行aclocal-1.10时,我得到:

代码语言:javascript
复制
aclocal-1.10
main::scan_file() called too early to check prototype at /workarea/tools/automake/bin/aclocal-1.10 line 604.
aclocal-1.10: `configure.ac' or `configure.in' is required

Update I转到configure.ac的第27行,并将行AC_PREREQ([2.69])改为AC_PREREQ([2.62])。现在,当发出make命令时,它会失败,出现以下错误:

代码语言:javascript
复制
source/nano-2.9.7: >make
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /u/user/source/nano-2.9.7/missing aclocal-1.10 -I m4
main::scan_file() called too early to check prototype at /workarea/tools/automake/bin/aclocal-1.10 line 604.
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /u/user/source/nano-2.9.7/missing autoheader)
autoheader: error: AC_CONFIG_HEADERS not found in configure.ac
FSUM8226 make: Error code 1 
make: './config.h.in' removed.

请提供指导和支持,围绕如何工作,我的系统强加的限制,以便编译我最喜欢的命令行编辑器!

EN

回答 1

Stack Overflow用户

发布于 2018-05-26 11:08:38

两个简单的解决方案:更新您的autoconf包。

或者修复时间戳,以便不重新调用autoconf,例如通过触摸发行版中的所有文件。

代码语言:javascript
复制
find . | xargs touch
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50518793

复制
相关文章

相似问题

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