数据库
首页 > 数据库> > Redis安装报错:zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory

Redis安装报错:zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory

作者:互联网

1. 错误信息:

cd src && make install
make[1]: Entering directory `/root/redis-6.2.6/src'
    CC Makefile.dep
make[1]: Leaving directory `/root/redis-6.2.6/src'
make[1]: Entering directory `/root/redis-6.2.6/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-6.2.6/src'
make: *** [install] Error 2

2. 解决方法:

make MALLOC=libc

在这里插入图片描述
在这里插入图片描述

3. 再次安装

make PREFIX=/apps/redis install

在这里插入图片描述
在这里插入图片描述

标签:src,make,redis,报错,6.2,directory,such,jemalloc
来源: https://blog.csdn.net/qq_29974229/article/details/121226471