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