您好,欢迎访问一九零五行业门户网

Install Redis On Centos

按照官方安装指导 $ wget http://download.redis.io/releases/redis-2.6.16.tar.gz$ tar xzf redis-2.6.16.tar.gz$ cd redis-2.6.16$ make 执行会遇到错误 [cc@ntdev2 redis-2.6.16]$ make -j8cd src make all make[1]: entering directory `/root/redis-2.6
按照官方安装指导$ wget http://download.redis.io/releases/redis-2.6.16.tar.gz$ tar xzf redis-2.6.16.tar.gz$ cd redis-2.6.16$ make
执行会遇到错误
[cc@ntdev2 redis-2.6.16]$ make -j8cd src && make all make[1]: entering directory `/root/redis-2.6.16/src' cc adlist.o cc ae.o cc anet.o cc dict.oin file included from adlist.c:34: zmalloc.h:50:31: error: jemalloc/jemalloc.h: no such file or directory zmalloc.h:55:2: error: #error newer version of jemalloc required make[1]: *** [adlist.o] error 1 make[1]: *** waiting for unfinished jobs.... in file included from ae.c:44: zmalloc.h:50:31: error: jemalloc/jemalloc.h: no such file or directory zmalloc.h:55:2: error: #error newer version of jemalloc required in file included from dict.c:47: zmalloc.h:50:31: error: jemalloc/jemalloc.h: no such file or directory zmalloc.h:55:2: error: #error newer version of jemalloc required make[1]: *** [ae.o] error 1 make[1]: *** [dict.o] error 1 make[1]: leaving directory `/root/redis-2.6.16/src' make: *** [all] error 2
看错误是jemalloc没有所以导致中断,解决办法是到redis的deps里装上就可以了,还有其他几个依赖:cd deps && make hiredis lua jemalloc linenoise
然后再回到src目录执行make就可以了,当然gcc是必须的,如果要make test记得yum install tcl
原文地址:install redis on centos, 感谢原作者分享。
其它类似信息

推荐信息