1、下载redis后 make 编译时报错
cd src && make all
make[1]: Entering directory /root/jevel/redis-2.8.17/src‘<br/>CC adlist.o<br/>/bin/sh: cc: command not found<br/>make[1]: *** [adlist.o] Error 127<br/>make[1]: Leaving directory
/root/jevel/redis-2.8.17/src‘
make: *** [all] Error 2
2、安装gcc
yum install gcc
3、删除redis解压文件夹,重新解压
4、cd redis文件,重新make即可。
原文地址:http://blog.51cto.com/8772603/2175018
时间: 2024-11-05 14:47:28