cygwin配置软件目录出现 configure: error: C compiler cannot create executables

这篇博客记录了在Cygwin环境下配置软件时遇到的错误,包括配置命令行输出的错误信息,提示缺少git仓库以及C编译器无法创建可执行文件的问题。解决方案涉及检查和清理不兼容的cygwin1.dll版本,确保只有最新版存在于Cygwin的bin目录中。在执行清理和重启后,配置问题得到解决,但新的问题依然存在。博客作者鼓励自己继续努力解决问题。
摘要由CSDN通过智能技术生成

Cygwin下配置软件目录时报错

命令行输出

$ ./configure --prefix=/usr/local

checking build system type... x86_64-pc-cygwin
checking host system type... x86_64-pc-cygwin
checking target system type... x86_64-pc-cygwin
fatal: not a git repository (or any of the parent directories): .git
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/usr/local/nco-5.0.6':
configure: error: C compiler cannot create executables
See `config.log' for more details

根据提示查看config.log

See `config.log’ for more details
在这里插入图片描述-此问题可能是由于使用了不兼容的 cygwin DLL 版本。
-使用 Windows 开始->查找/搜索工具搜索 cygwin1.dll
并删除除最新版本以外的所有版本
-最新版本“应该” 在 x:cygwin/bin 中,其中“x”是您安装了 cygwin 的磁盘
-如果您无法找到另一个 cygwin1.DLL,建议重新启动

解决

搜索cygwin1.dll文件
删除其他的,只剩下cygwin/bin中的
在这里插入图片描述
再次运行指令,成功(下一个bug又出现了)
在这里插入图片描述

来自Blogger
这是我的第一篇博客,再接再厉!
88!

From Space_5150

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值