cc adlist.o:
[root@centos7 redis3]# make PREFIX=/usr/local/redis install
cd src && make install
make[1]: Entering directory `/usr/local/src/redis3/src'
CC adlist.o
/bin/sh: cc: command not found
make[1]: *** [adlist.o] Error 127
make[1]: Leaving directory `/usr/local/src/redis3/src'
make: *** [install] Error 2
解决方案:安装gcc-c++
[root@centos7 redis3]# sudo yum install gcc-c++
Loaded plugins: fastestmirror, langpacks
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
base | 3.6 kB 00:00
epel/x86_64/metalink | 6.4 kB 00:00
epel | 4.3 kB 00:00
extras | 3.4 kB 00:00
nux-dextop | 2.9 kB 00:00
updates | 3.4 kB 00:00
(1/8): base/7/x86_64/group_gz | 155 kB 00:00
(2/8): epel/x86_64/group_gz | 170 kB 00:00
(3/8): extras/7/x86_64/primary_db | 183 kB 00:00
(4/8): updates/7/x86_64/primary_db | 1.2 MB 00:04
(5/8): base/7/x86_64/primary_db | 5.6 MB 00:17
(6/8): epel/x86_64/primary_db | 4.4 MB 00:38
nux-dextop/x86_64/primary_db FAILED
....
Complete!
jemalloc/jemalloc.h:
[root@centos7 redis3]# make PREFIX=/usr/local/redis install
cd src && make install
make[1]: Entering directory `/usr/local/src/redis3/src'
CC adlist.o
In file included from adlist.c:34:0:
zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory
#include <jemalloc/jemalloc.h>
^
compilation terminated.
make[1]: *** [adlist.o] Error 1
make[1]: Leaving directory `/usr/local/src/redis3/src'
make: *** [install] Error 2
解决方案:make MALLOC=libc && make install
you need tcl :
[root@centos7 redis3]# make test
cd src && make test
make[1]: Entering directory `/usr/local/src/redis3/src'
You need tcl 8.5 or newer in order to run the Redis test
make[1]: *** [test] Error 1
make[1]: Leaving directory `/usr/local/src/redis3/src'
make: *** [test] Error 2
解决方案:sudo yum install tcl