编译redis时报错fatal error: jemalloc/jemalloc.h: No such file or directory

661次阅读
没有评论
编译 redis 时报错 fatal error: jemalloc/jemalloc.h: No such file or directory

错误

[root@iZuf68d2pgsg8ht1f7do8eZ redis-stable]# make
cd src && make all
make[1]: Entering directory `/root/redis-stable/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-stable/src'
make: *** [all] Error 2

解决

make 命令改成 make MALLOC=libc 即可

 make MALLOC=libc
正文完
 
评论(没有评论)
验证码