您的位置:首页 > 其它

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

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

make MALLOC=libcreadme中有以下内容
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: