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*
然后我的还是不好使,报错变了.
无论如何也解决不了.
建议重装系统吧.太费时间了........