Redis安装过程jemalloc/jemalloc.h报错

时间:2022-11-30 08:38:41

问题:

[root@localhost redis-3.0.0]# make

cd src && make all

make[1]: Entering directory `/data/redis-3.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 `/data/redis-3.0.0/src'

make: *** [all] Error 2

解决方法:

# cd deps/

# make hiredis jemalloc linenoise lua geohash-int

#cd ..

#make