安装redis时报错CC adlist.o

现象:

 [root@linux324 src]# make install
    CC adlist.o
cc: error trying to exec 'cc1': execvp: No such file or directory
make: *** [adlist.o] Error 1
[root@linux324 src]# make install
    CC adlist.o
cc: error trying to exec 'cc1': execvp: No such file or directory
make: *** [adlist.o] Error 1

检查gcc

[root@linux324 src]# rpm -qa|grep gcc
gcc-java-4.4.7-4.el6.i686
libgcc-4.4.7-4.el6.i686
gcc-c++-4.4.7-4.el6.i686
gcc-4.4.7-4.el6.i686
gcc-objc++-4.4.7-4.el6.i686
gcc-objc-4.4.7-4.el6.i686

 

gcc也有还是报错

 

解决方法:

 最后下载redis3.0,jdk用1.8解决

 

 

你可能感兴趣的:(redis)