node.js - 无法在Windows机器上制作redis

标签 node.js redis cygwin

我正在尝试在我的 nodejs 项目中使用 redis。我看到要构建 redis,您需要 make 命令和 gcc。我在我的 Windows 机器上安装了 cygwin,然后安装了 makegcc

我从这里下载了 redis https://redis.io/download并按照说明-

$ wget http://download.redis.io/releases/redis-3.2.8.tar.gz
$ tar xzf redis-3.2.8.tar.gz
$ cd redis-3.2.8
$ make 

我正在尝试做同样的事情,但在构建它时遇到了一些问题。这是日志:-

D:\Node.JS\redis-3.2.8>make
cd src && make all
make[1]: Entering directory '/cygdrive/d/Node.JS/redis-3.2.8/src'
    CC adlist.o
    CC quicklist.o
    CC ae.o
In file included from ae.c:58:0:
ae_select.c: In function 'aeApiResize':
ae_select.c:52:37: warning: unused parameter 'eventLoop' [-Wunused-parameter]
 static int aeApiResize(aeEventLoop *eventLoop, int setsize) {
                                     ^~~~~~~~~
    CC anet.o
    CC dict.o
    CC server.o
    CC sds.o
    CC zmalloc.o
zmalloc.c: In function 'zmalloc_get_memory_size':
zmalloc.c:421:1: warning: control reaches end of non-void function [-Wreturn-typ
e]
 }
 ^
    CC lzf_c.o
    CC lzf_d.o
    CC pqsort.o
    CC zipmap.o
    CC sha1.o
    CC ziplist.o
    CC release.o
    CC networking.o
    CC util.o
    CC object.o
    CC db.o
    CC replication.o
    CC rdb.o
    CC t_string.o
    CC t_list.o
    CC t_set.o
    CC t_zset.o
    CC t_hash.o
    CC config.o
    CC aof.o
    CC pubsub.o
    CC multi.o
    CC debug.o
debug.c: In function 'watchdogSignalHandler':
debug.c:1138:60: warning: unused parameter 'secret' [-Wunused-parameter]
 void watchdogSignalHandler(int sig, siginfo_t *info, void *secret) {
                                                            ^~~~~~
    CC sort.o
    CC intset.o
    CC syncio.o
    CC cluster.o
    CC crc16.o
    CC endianconv.o
    CC slowlog.o
    CC scripting.o
    CC bio.o
    CC rio.o
    CC rand.o
    CC memtest.o
    CC crc64.o
    CC bitops.o
    CC sentinel.o
    CC notify.o
    CC setproctitle.o
    CC blocked.o
    CC hyperloglog.o
    CC latency.o
    CC sparkline.o
    CC redis-check-rdb.o
    CC geo.o
    LINK redis-server
cc: error: ../deps/hiredis/libhiredis.a: No such file or directory
cc: error: ../deps/lua/src/liblua.a: No such file or directory
cc: error: ../deps/geohash-int/geohash.o: No such file or directory
cc: error: ../deps/geohash-int/geohash_helper.o: No such file or directory
make[1]: *** [Makefile:185: redis-server] Error 1
make[1]: Leaving directory '/cygdrive/d/Node.JS/redis-3.2.8/src'
make: *** [Makefile:6: all] Error 2

D:\Node.JS\redis-3.2.8>m

任何人都可以帮我解决问题吗?

最佳答案

这里是新的 redis 5 版本,其中包含有关如何操作的信息 https://github.com/meiry/redis5_compiled_for_windows10

关于node.js - 无法在Windows机器上制作redis,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43987090/

相关文章:

django - 通过任务 : DatabaseWrapper objects created in a thread can only be used in that same thread 执行数据库查询时,celery 出现 django 错误

django - Celery 没有连接到 Redis Broker (Django)

c++ - 如何在C++中调用cygwin?

node.js - 如何在实时服务器上使用 Webpack 运行 Vue cli?

javascript - 在 ace 编辑器中动态自动完成

javascript - 在 Node.js 中实现通知队列

Vim 命令 :Explore :Sexplore :Hexplore doesn't work in cygwin

java - 如何使用 Cygwin 运行 Java 应用程序

node.js - Mongoose 从数组中删除子文档

node.js - 找不到模块 './clone.js'