1、在编译安装Redis-4.0.14报错
[root@nginx-yum redis-4.0.14]
cd src && make install
make[1]: Entering directory `/root/redis_tomcat/redis-4.0.14/src'
CC Makefile.dep
make[1]: Leaving directory `/root/redis_tomcat/redis-4.0.14/src'
make[1]: Entering directory `/root/redis_tomcat/redis-4.0.14/src'
…………
In file included from adlist.c:34:0:
zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory
^
compilation terminated.
make[1]: *** [adlist.o] Error 1
make[1]: Leaving directory `/root/redis_tomcat/redis-4.0.14/src'
make: *** [install] Error 2
2、解决方法
make PREFIX=/usr/local/redis/redis01 MALLOC=libc install
……
make[1]: Leaving directory `/root/redis_tomcat/redis-4.0.14/src'
[root@nginx-yum bin]
total 11548
-rwxr-xr-x 1 root root 353760 Mar 7 06:43 redis-benchmark
-rwxr-xr-x 1 root root 3647800 Mar 7 06:43 redis-check-aof
-rwxr-xr-x 1 root root 3647800 Mar 7 06:43 redis-check-rdb
-rwxr-xr-x 1 root root 519968 Mar 7 06:43 redis-cli
lrwxrwxrwx 1 root root 12 Mar 7 06:43 redis-sentinel -> redis-server
-rwxr-xr-x 1 root root 3647800 Mar 7 06:43 redis-server