我正在尝试使用cygwin在windows上安装redis-2.6.16。我的错误越来越小。
感谢任何人的帮助。谢谢。
/c/cygwin64/bin/cc: /c/cygwin64/bin/cc: cannot execute binary file
make[3]: *** [net.o] Error 126
make[3]: Leaving directory `/c/cygwin64/home/redis-2.6.16/deps/hiredis'
make[2]: *** [hiredis] Error 2
make[2]: Leaving directory `/c/cygwin64/home/redis-2.6.16/deps'
make[1]: [persist-settings] Error 2 (ignored)
CC adlist.o
/c/cygwin64/bin/cc: /c/cygwin64/bin/cc: cannot execute binary file
make[1]: *** [adlist.o] Error 126
make[1]: Leaving directory `/c/cygwin64/home/redis-2.6.16/src'
make: *** [all] Error 2发布于 2013-11-22 15:27:41
你不能在Windows上使用basic Redis,你必须使用Windows上不支持的端口给出的二进制文件:https://github.com/MSOpenTech/redis
基本上,你不能仅仅在Windows上编译Redis的C代码。而且这个端口有一些缺点(因为Windows不支持fork命令),其中有"stop the world“操作( redis在其官方版本中没有):你不能将它用于生产。
也就是说,堆栈显示cc丢失,您需要在cygwin上使用C编译器,但这不足以使redis在Windows上工作。检查最后一个链接(github)并下载二进制文件,如果您确实需要使redis在Windows上工作。
https://stackoverflow.com/questions/20130106
复制相似问题