我正在尝试编译nano并遇到一些问题。
详细信息如下 - 我无法更改的版本(在s390架构上进行编译,并且无法访问其他版本):
am__api_version='1.10'
我运行configure,然后运行make。在运行make时,我收到以下错误:
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 shell运行aclocal-1.10
时,我得到:
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
更新
我去了configure.ac的第27行并更改了该行
AC_PREREQ([2.69])
到AC_PREREQ([2.62])
。现在,当发出make命令时,它失败并出现以下错误:
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.
请提供有关如何解决我的系统强加限制的指导和支持,以便编译我最喜欢的命令行编辑器!
答案 0 :(得分:0)
两个简单的解决方案:更新您的autoconf包。
或者修复您的时间戳,以便不再重新调用autoconf,例如通过触摸分发中的所有文件。
find . | xargs touch