make报错:
cd src && make all
make[1]: Entering directory `/usr/local/redis-5.0.0/src'
CC adlist.o
In file included from adlist.c:34:0:
zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory
#include <jemalloc/jemalloc.h>
^
compilation terminated.
make[1]: *** [adlist.o] Error 1
make[1]: Leaving directory `/usr/local/redis-5.0.0/src'
make: *** [all] Error 2
解决办法:
编辑src/.make-settings里的OPT,改为OPT=-O2 -march=x86-64
3.3、文件缺失
make报错:
In file included from adlist.c:34:0:
zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory
#include <jemalloc/jemalloc.h>
^
compilation terminated.
make[1]: *** [adlist.o] Error 1
make[1]: Leaving directory `/usr/local/redis-5.0.0/src'
make: *** [all] Error 2
解决方案:
分别进入redis-stable下的deps下的hiredis、lua 运行make
cd /usr/local/redis-stable/deps
make
cd lua
make
cd /usr/local/redis-stable
make