c++ - 使用 Cygwin 编译 Corkscrew 时出现配置错误

标签 c++ c cygwin configure

我正在尝试使用 Cygwin 在 Windows 机器上编译开瓶器。现在每次我尝试配置它时,我都会收到一个错误,指出 configure: error: cannot guess build type;你必须指定一个

这是完整的错误日志,供那些希望查看的人使用:-

Blueelvis_RoXXX@PranavVJituri ~/corkscrew-2.0
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -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... no
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 for function prototypes... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for gawk... gawk
checking whether ln -s works... yes
checking build system type... configure: error: cannot guess build type; you must specify one

我也尝试使用 TARGETBUILDHOST 参数,但它没有用,因为我遇到了同样的错误。

在这件事上的帮助将不胜感激:)

最佳答案

检查最新版本的automake

$哪个汽车制造商 $ automake --version

搜索 /usr/share/automake*/config.guess

/usr/share/automake.1.11.1/config.guess中找到合适的automake文件夹

将构建树中的 config.guess 替换为 /usr/share/automake.1.11.1/config.guess

关于c++ - 使用 Cygwin 编译 Corkscrew 时出现配置错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22181215/

相关文章:

c++ - 对象的函数存储在内存中的什么位置?

c++ - std::async 指定线程的模拟

c - 基本 C 程序无输出

Cygwin 中的 bash shell

c++ - 使用 CUDA 编译 main.cpp 文件

c++ - 传递指向结构的引用作为模板参数

c++ - 如何从带符号的零中去掉减号

c - 需要使用 OpenSSL 3.0.8 库解密的帮助

cygwin - 如何在 cygwin 上构建 llvm 和 clang

unicode - 脚本将文件另存为unicode