centos7 安装redis 出现cc: command not found错误解决

服务器新安装没有安装gcc环境,需要安装gcc环境,使用yum安装
yum install gcc

检查gcc环境是否安装好
rpm -qa|grep gcc

然后删掉redis目录,在继续操作,成功。

rm -rf redis
原文地址:https://www.cnblogs.com/mingforyou/p/15344776.html