标签:instr tor port libstdc++ 完美安装 c++ sele director fan
解压后
执行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....
标签:instr tor port libstdc++ 完美安装 c++ sele director fan
原文地址:https://www.cnblogs.com/chaochao233/p/9704234.html