1. 程式人生 > >安裝redis報錯 cc: command not found

安裝redis報錯 cc: command not found

解壓 com all ins amp 新解 list man [1]

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即可。

安裝redis報錯 cc: command not found