zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory

redis安装过程中,make时出错

[root@zhoulei redis-3.2.1]# make
cd src && make all
make[1]: Entering directory `/home/redis-3.2.1/src'
    CC adlist.o
In file included from adlist.c:34:
zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory
zmalloc.h:55:2: error: #error "Newer version of jemalloc required"
make[1]: *** [adlist.o] Error 1
make[1]: Leaving directory `/home/redis-3.2.1/src'
make: *** [all] Error 2

原因:

 To force compiling against libc malloc, use:  
 
    % make MALLOC=libc  
 
To compile against jemalloc on Mac OS X systems, use:  

% make MALLOC=jemalloc


解决:make MALLOC=libc


 

你可能感兴趣的:(数据库)