This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef __CYGWIN__ | |
#ifndef SA_ONSTACK | |
#define SA_ONSTACK 0x08000000 | |
#endif | |
#endif |
This is a manual change which I found in this issue. Finally run “make”. Ignore the warnings. If all goes well, you should have a bunch of new .exe files at the end. redis-benchmark.exe, redis-check-aof.exe, redis-check-dump.exe, redis-cli.exe and redis-server.exe – copy them into the bin folder of your Cygwin installation and restart the terminal. To test execute “redis-cli -h <your-redis-server> -p <your-redis-port> ping” and hopefully get a pong back.
1 comments:
Thanks for this post.
I didn't manage to build redis for cygwin thought...
I had to add the snippet to debug.c too, and then got :
sentinel.c:1415:13: warning: implicit declaration of function ‘strtoll’
LINK redis-server
cc: unrecognized option '-rdynamic'
cc: unrecognized option '-pthread'
object.o: In function `getLongDoubleFromObject':
/cygdrive/d/UFAPI/redis-2.6.10/src/object.c:432: undefined reference to `_strtold'
collect2: ld returned 1 exit status
Makefile:157: recipe for target `redis-server' failed
make[1]: *** [redis-server] Error 1
make[1]: Leaving directory `/cygdrive/d/UFAPI/redis-2.6.10/src'
Makefile:9: recipe for target `install' failed
make: *** [install] Error 2
Post a Comment