redis源码安装出现fatal error: jemalloc/jemalloc.h: No such file or directory

redis源码安装出现fatal error: jemalloc/jemalloc.h: No such file or directory

luffy5459 2017-10-13 17:37:02  5200  收藏 3

分类专栏: linux 文章标签: redis 源码 jemalloc

版权

最新版redis安装可能出现错误,如图所示:

解决办法可以参考README.md,使用make MALLOC=libc来编译,如下图所示:

编译通过

附上README.md关于Allocator的说明:

 

 
  1. Allocator

  2. ---------

  3.  
  4. Selecting a non-default memory allocator when building Redis is done by setting

  5. the `MALLOC` environment variable. Redis is compiled and linked against libc

  6. malloc by default, with the exception of jemalloc being the default on Linux

  7. systems. This default was picked because jemalloc has proven to have fewer

  8. fragmentation problems than libc malloc.

  9.  
  10. To force compiling against libc malloc, use:

  11.  
  12. % make MALLOC=libc

  13.  
  14. To compile against jemalloc on Mac OS X systems, use:

  15.  
  16. % make MALLOC=jemalloc

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值