redis redis-2.6.17 安装失败 原因分析

阅读更多

 

redis 安装 redis-2.6.17

 

redis 集群 安装 http://knight-black-bob.iteye.com/blog/2343192

 

 

 

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]: Leaving directory `/data0/src/redis-2.6.2/src'
make: *** [all] Error 2

 

make & make install  失败

 

原因分析

Allocator  
---------  
 
Selecting a non-default memory allocator when building Redis is done by setting  
the `MALLOC` environment variable. Redis is compiled and linked against libc  
malloc by default, with the exception of jemalloc being the default on Linux  
systems. This default was picked because jemalloc has proven to have fewer  
fragmentation problems than libc malloc.  
 
To force compiling against libc malloc, use:  
 
    % make MALLOC=libc  
 
To compile against jemalloc on Mac OS X systems, use:  
 
    % make MALLOC=jemalloc

 

 

 

我们可以通过 make MALLOC=libc 命令

 

 

 

 

 

 

 

 

 

 

 

 

捐助开发者

在兴趣的驱动下,写一个免费的东西,有欣喜,也还有汗水,希望你喜欢我的作品,同时也能支持一下。 当然,有钱捧个钱场(右上角的爱心标志,支持支付宝和PayPal捐助),没钱捧个人场,谢谢各位。


redis redis-2.6.17 安装失败 原因分析_第1张图片redis redis-2.6.17 安装失败 原因分析_第2张图片
 
 谢谢您的赞助,我会做的更好!

 

 

 

 

 

 

 

你可能感兴趣的:(redis-2.6.17,安装,失败,原因,linux)