尝试在 cygwin 中运行 make 时,出现以下错误消息:
$ make clean
Error: cmp command not found, please install diffutils
../../../../Makefile:489: recipe for target 'clean' failed
make: *** [clean] Error 1
但是,diffutils 已安装并且 cmp 存在:
$ ls /bin | grep "cmp"
bzcmp
cmp.exe
infocmp.exe
lzcmp
xzcmp
zcmp
我尝试重新安装,但没有任何改变:
$ apt-cyg remove diffutils
Removing diffutils
Package diffutils removed
$ apt-cyg install diffutils
Installing diffutils
diffutils-3.5-2.tar.xz: OK
Unpacking...
Package diffutils requires the following packages, installing:
cygwin libiconv2 libintl8 libsigsegv2
Package cygwin is already installed, skipping
Package libiconv2 is already installed, skipping
Package libintl8 is already installed, skipping
Package libsigsegv2 is already installed, skipping
Package diffutils installed
我究竟做错了什么?
答案1
这是一个非常艰巨的解决方案,但最后我只是完全重新安装了 cygwin,一切又恢复正常了。