error: jemalloc/jemalloc.h: No such file or directory

来源:互联网 发布:windows phone下载软件 编辑:程序博客网 时间:2024/05/21 11:26

make redis时提示error: jemalloc/jemalloc.h: No such file or directory等一系列错误,经查是make时需要指定MALLOC=libc

make MALLOC=libc
readme中有以下内容
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
原创粉丝点击