果然报错了:
zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory
zmalloc.h:55:2: error: #error "Newer version of jemalloc required" 需要这个东西,按照以往的惯例,可以yum install 啊!网上一搜,千篇一律,在make的时候加参数:
Allocator
---------
Selecting a non-default memory allocator when building Redis is done by setting
the `MALLOC` environment variable. Redis is compiled and linked against libc
malloc by default, with the exception of jemalloc being the default on Linux
systems. This default was picked because jemalloc has proven to have fewer
fragmentation problems than libc malloc.
To force compiling against libc malloc, use:
% make MALLOC=libc
To compile against jemalloc on Mac OS X systems, use:
% make MALLOC=jemalloc
Verbose build
--------------------------以上是错误1------------------------
错误2:
$ make
clang: error: no such file or directory: '../deps/hiredis/libhiredis.a'
clang: error: no such file or directory: '../deps/lua/src/liblua.a'
make[1]: *** [redis-server] Error 1
make: *** [all] Error 2
方法:
cd deps
make lua hiredis linenoise
---------------------------错误3-------------------------You need tcl 8.5 or newer in order to run the Redis testmake: *** [test] Error 1
方法:
yum install tcl