最新版redis安装可能出现错误,如图所示:

解决办法可以参考README.md,使用make MALLOC=libc来编译,如下图所示:

编译通过

附上README.md关于Allocator的说明:
Allocator
---------
Selecting a non-default memory allocator when building Redis is done by setting
the `MALLOC` environment variable. Redis is compiled and linked against libc
malloc by default, with the exception of jemalloc being the default on Linux
systems. This default was picked because jemalloc has proven to have fewer
fragmentation problems than libc malloc.
To force compiling against libc malloc, use:
% make MALLOC=libc
To compile against jemalloc on Mac OS X systems, use:
% make MALLOC=jemalloc
本文介绍了解决最新版Redis安装过程中可能遇到的错误的方法。当使用默认配置编译Redis时可能会出现一些问题,可以通过设置环境变量MALLOC为libc来指定使用libcmalloc而非默认的jemalloc进行编译。
2334

被折叠的 条评论
为什么被折叠?



