在ubanto环境下安装redis报错------zmalloc.h:50:10: fatal error: jemalloc/jemalloc.h: No such file or director

在ubanto环境下安装redis报错
执行make报错

root@ubuntu:/usr/redis# make
cd src && make all
make[1]: Entering directory '/usr/redis/src'
    CC adlist.o
In file included from adlist.c:34:
zmalloc.h:50:10: fatal error: jemalloc/jemalloc.h: No such file or directory
   50 | #include <jemalloc/jemalloc.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:376: adlist.o] Error 1
make[1]: Leaving directory '/usr/redis/src'
make: *** [Makefile:6: all] Error 2

解决方式

make MALLOC=libc

猜你喜欢

转载自blog.csdn.net/zhangmingfie/article/details/127659245