centos安装redis报错 fatal error: jemalloc/jemalloc.h: No such file or directory #include <jemalloc/jemalloc.h>
centos安装redis报错 :
[root@node01 redis-5.0.5]# make cd src && make all make[1]: Entering directory `/kkb/install/redis-5.0.5/src' CC Makefile.dep make[1]: Leaving directory `/kkb/install/redis-5.0.5/src' make[1]: Entering directory `/kkb/install/redis-5.0.5/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 `/kkb/install/redis-5.0.5/src' make: *** [all] Error 2
解决方法:
[root@node01 redis-5.0.5]# make MALLOC=libc
问题解决: