Error jemalloc/jemalloc.h: No such file or directory when making Redis

后端 未结 1 1730
不知归路
不知归路 2021-02-07 07:23

I\'m try to setup my Redis server, when execute make command, got error: \"jemalloc/jemalloc.h: No such file or directory when making Redis\", I have tried all steps I can find,

相关标签:
1条回答
  • 2021-02-07 07:39

    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
    

    Source: https://github.com/redis/redis/blob/6.0/README.md#allocator

    0 讨论(0)
提交回复
热议问题