mac 编译 redis 问题请教

2021-03-02 12:20:30 +08:00
 pkwenda

macos 平台 https://redis.io/ 下载了个最新稳定版 6.2.0 打算 debug 阅读一下 redis 源码,make 的时候总是报错如下,没有 google 到谁有类似的错误,请大神指教:


Venda-GM@zhuangwendadeiMac redis-6.2.0 % sudo make install

make ℹ info Invoking install target
make ℹ info Invoking all target
(node:72871) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): undefined
(node:72871) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
make ✖ ERR  not found: make-$(REDIS_SERVER_NAME)
sh: $: command not found
make ✖ ERR  cd src && $(MAKE) $@
make ✖ ERR  Recipe exited with code %d
(node:72868) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Recipe exited with code %d
(node:72868) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.



gcc tcl 都正常

NodeJS 用的 13 换了 8.2,虽然我不知道为什么 make 报错是 nodeJs 的错误。

随便去了个 centOs 编译了一下不要太顺利

1554 次点击
所在节点    Redis
2 条回复
oxromantic
2021-03-02 13:55:13 +08:00
REDIS_SERVER_NAME 环境变量未定义?
pkwenda
2021-03-02 14:30:41 +08:00
@oxromantic #1 还需要设置环境变量吗? 没见有人讲啊 :> 有什么可以参考的吗,我见国内外的小伙伴都是 make 一下基本就完事了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/757582

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX