致命错误:jemalloc/jemalloc.h:没有那个文件或目录 #include <jemalloc/jemalloc.h>

错误现象 :

[cpucode@localhost redis-4.0.14]$ sudo make
cd src && make all
make[1]: 进入目录“/usr/local/redis-4.0.14/src”
CC Makefile.dep
make[1]: 离开目录“/usr/local/redis-4.0.14/src”
make[1]: 进入目录“/usr/local/redis-4.0.14/src”
CC adlist.o
In file included from adlist.c:34:0:
zmalloc.h:50:31: 致命错误:jemalloc/jemalloc.h:没有那个文件或目录
#include <jemalloc/jemalloc.h>
^
编译中断。
make[1]: *** [adlist.o] 错误 1
make[1]: 离开目录“/usr/local/redis-4.0.14/src”
make: *** [all] 错误 2

在这里插入图片描述

解决发案 :

安装 tcl

sudo yum install -y tcl

在这里插入图片描述

清理文件

sudo make distclean

在这里插入图片描述

make

sudo make

猜你喜欢

转载自blog.csdn.net/qq_44226094/article/details/115769408