安装redis报错:#include <jemalloc/jemalloc.h> compilation terminated.
报错:
[root@centos7-docker redis-3.0.3]# make
cd src && make all
make[1]: Entering directory `/root/redis-3.0.3/src'
CC adlist.o
In file included from adlist.c:34:0:
zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory
#include <jemalloc/jemalloc.h>
^
compilation terminated.
make[1]: *** [adlist.o] Error 1
make[1]: Leaving directory `/root/redis-3.0.3/src'
make: *** [all] Error 2
解决方法:
[root@centos7-docker redis-3.0.3]# make MALLOC=libc