官方下载地址:https://redis.io/download
- tar xzf redis-3.2.9.tar.gz
- cd redis-3.2.9
- cd src && make all
MAKE hiredis
cd hiredis && make static
make[3]: Entering directory `/opt/redis-3.2.9/deps/hiredis'
gcc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb net.c
make[3]: gcc: Command not found
make[3]: *** [net.o] Error 127
make[3]: Leaving directory `/opt/redis-3.2.9/deps/hiredis'
make[2]: *** [hiredis] Error 2
make[2]: Leaving directory `/opt/redis-3.2.9/deps'
make[1]: [persist-settings] Error 2 (ignored)
CC adlist.o
/bin/sh: cc: command not found
make[1]: *** [adlist.o] Error 127
make[1]: Leaving directory `/opt/redis-3.2.9/src'
make: *** [all] Error 2
提示缺少cc,执行:yum -y install gcc
安装好gcc后,执行依然报错
[root@rdassitapp07 src]# make && make install
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: *** [adlist.o] Error 1
重新执行 make CFLAGS=”-march=x86-64”
成功。
1318

被折叠的 条评论
为什么被折叠?



