我正在尝试编译nano并遇到一些问题。
详细信息如下-我无法更改的版本(在s390体系结构上编译并且无法访问其他版本):
am__api_version='1.10'寻找工具版本1.10而不是1.15我运行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运行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 requiredUpdate I转到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.请提供指导和支持,围绕如何工作,我的系统强加的限制,以便编译我最喜欢的命令行编辑器!
发布于 2018-05-26 11:08:38
两个简单的解决方案:更新您的autoconf包。
或者修复时间戳,以便不重新调用autoconf,例如通过触摸发行版中的所有文件。
find . | xargs touchhttps://stackoverflow.com/questions/50518793
复制相似问题