centos安装redis报错 fatal error: jemalloc/jemalloc.h: No such file or directory #include <jemalloc/

2022/4/6 2:19:32

本文主要是介绍centos安装redis报错 fatal error: jemalloc/jemalloc.h: No such file or directory #include <jemalloc/,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

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

 

 问题解决:

 

 

                 



这篇关于centos安装redis报错 fatal error: jemalloc/jemalloc.h: No such file or directory #include <jemalloc/的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程