make[1]: Entering directory `/home/liuchaofan/redis-3.0.7/src'
CC adlist.o
/bin/sh: cc: command not found
make[1]: *** [adlist.o] Error 127
make[1]: Leaving directory `/home/liuchaofan/redis-3.0.7/src'
make: *** [all] Error 2

提示缺少cc,执行:yum -y install gcc gcc-c++ libstdc++-devel

make继续报错:

cd src && make all
make[1]: Entering directory `/home/liuchaofan/redis-3.0.7/src'
CC adlist.o
adlist.c:1: error: CPU you selected does not support x86-64 instruction set
make[1]: *** [adlist.o] Error 1
make[1]: Leaving directory `/home/liuchaofan/redis-3.0.7/src'
make: *** [all] Error 2

然后加上“make CFLAGS="-march=x86-64"

--------------------- 本文来自 某某凡人 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/u013593306/article/details/51228672?utm_source=copy