redis安装make失败,make[1]: *** [adlist.o] Error 127....
Posted Admin是超超
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了redis安装make失败,make[1]: *** [adlist.o] Error 127....相关的知识,希望对你有一定的参考价值。
解压后
执行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....的主要内容,如果未能解决你的问题,请参考以下文章
redis make时 提示 zmalloc.h:50:31: error: jemalloc/jemalloc.h: