首页 > 数据库 >redis安装过程中执行make命令编译报错

redis安装过程中执行make命令编译报错

时间:2022-11-28 20:56:04浏览次数:46  
标签:src make redis 报错 directory jemalloc

报错信息:

cd src && make all
make[1]: Entering directory /root/data/redis-4.0.0/src' CC Makefile.dep make[1]: Leaving directory /root/data/redis-4.0.0/src'
make[1]: Entering directory /root/data/redis-4.0.0/src' CC adlist.o In file included from adlist.c:34: zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory zmalloc.h:55:2: error: #error "Newer version of jemalloc required" make[1]: *** [adlist.o] Error 1 make[1]: Leaving directory /root/data/redis-4.0.0/src'
make: *** [all] Error 2

解决过程:

按照网上的方式一种是:make MALLOC=libc

另外一种说不要使用上面的方式:解决方法:

\# cd deps/

*# make hiredis jemalloc linenoise lua geohash-int*

*#cd ..*

*#make*

然后我的还是不好使,报错变了.

image-20221127212340892

image-20221127220540548

无论如何也解决不了.

建议重装系统吧.太费时间了........

标签:src,make,redis,报错,directory,jemalloc
From: https://www.cnblogs.com/javaxubo/p/16933582.html

相关文章