0
点赞
收藏
分享

微信扫一扫

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

诗尚凝寒 2022-04-03 阅读 76

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 条评论