gpt4 book ai didi

autotools - ./configure 为 aclocal-1.11 生成 Makefile 请求?

转载 作者:行者123 更新时间:2023-12-02 14:17:59 26 4
gpt4 key购买 nike

我是使用自动工具的新手,并且有一个我不明白的非常严重的问题。我想在一台旧机器上测试我的新构建系统,即 Linux 内核 2.4.18-64GB-SMP。我在内核为 3.1.9-2-ARCH 的系统上构建了配置脚本和其他与自动工具相关的文件。

这是运行“./configure”的输出:

$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) gawk
checking for gcc... colorgcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether colorgcc accepts -g... yes
checking for colorgcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of colorgcc... gcc
checking for ranlib... ranlib
checking whether make sets $(MAKE)... (cached) yes
checking for main in -lrt... yes
checking how to run the C preprocessor... colorgcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for memmove... yes
checking for memset... yes
checking for setlocale... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strrchr... yes
checking for strspn... yes
checking for strstr... yes
checking for strtol... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/project/Makefile
config.status: creating include/config.h
config.status: executing depfiles commands

好吧,那么,当我想运行 make 时,我得到这个:

$ make
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/bp/project.test/mi
ssing --run aclocal-1.11
/home/bp/project.test/missing: aclocal-1.11: command not found
WARNING: `aclocal-1.11' is missing on your system. You should only need it if
you modified `acinclude.m4' or `configure.ac'. You might want
to install the `Automake' and `Perl' packages. Grab them from
any GNU archive site.
cd . && /bin/sh /home/bp/project.test/missing --run automake-1.11 --f
oreign
/home/bp/project.test/missing: automake-1.11: command not found
WARNING: `automake-1.11' is missing on your system. You should only need it if
you modified `Makefile.am', `acinclude.m4' or `configure.ac'.
You might want to install the `Automake' and `Perl' packages.
Grab them from any GNU archive site.
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/bp/project.test/mi
ssing --run autoconf
configure.ac:1: error: Autoconf version 2.68 or higher is required for this scri
pt
configure.ac:1: the top level
make: *** [configure] Error 1

之后,再次运行“make”来构建源代码。但是“configure”脚本和“aclocal.m4”脚本变成了零字节文件。

-rwxrwxr-x    1 bp    users       33918 Jan 20 13:48 config.status
-rwxrwxr-x 1 bp users 0 Jan 20 13:48 configure
-rw-rw-r-- 1 bp users 0 Jan 20 13:48 aclocal.m4
-rw-rw-r-- 1 bp users 22165 Jan 20 13:48 Makefile.in

我能做什么?我认为 GNU 自动工具生成的配置脚本是独立于平台的,不需要自动工具来运行?

有什么想法吗?

最佳答案

如果您的 tarball 尝试运行 aclocal 和其他自动工具,则意味着 tarball 存在问题。确保您的 tarball 来自 make distcheck

关于autotools - ./configure 为 aclocal-1.11 生成 Makefile 请求?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8941940/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com