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

报错信息:

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

无论如何也解决不了.

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

posted @   哩个啷个波  阅读(345)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
点击右上角即可分享
微信分享提示