redis源码安装出现fatal error: jemalloc/jemalloc.h: No such file or directory

来源:互联网 发布:云豹直播app源码 编辑:程序博客网 时间:2024/06/05 19:10

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

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

编译通过

附上README.md关于Allocator的说明:

Allocator---------Selecting a non-default memory allocator when building Redis is done by settingthe `MALLOC` environment variable. Redis is compiled and linked against libcmalloc by default, with the exception of jemalloc being the default on Linuxsystems. This default was picked because jemalloc has proven to have fewerfragmentation problems than libc malloc.To force compiling against libc malloc, use:    % make MALLOC=libcTo compile against jemalloc on Mac OS X systems, use:    % make MALLOC=jemalloc

阅读全文
0 0