在linux make redis时出现如下错误:
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"
CC adlist.o
表示需要更新jemalloc的版本。
解决方法:
在redis解压目录下进入deps/
cd deps/
make hiredis jemalloc linenoise lua geohash-int
编译完成后回到上一层进行make & make install即可