1. 程式人生 > >redis安裝make失敗,make[1]: *** [adlist.o] Error 127....

redis安裝make失敗,make[1]: *** [adlist.o] Error 127....

dev arch home port ++ ring blog flag gcc-c++

解壓後

執行make後報錯:

cd src && make all
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

redis安裝make失敗,make[1]: *** [adlist.o] Error 127....