redis 安装报错 jemalloc/jemalloc.h: No such file or directory。

对于redis安装的这个错误,网上大部分文章的对这个问题的解答都是有误的。所以在这里单列出来。错误内容:jemalloc/jemalloc.h: No such file or directory。 image文档针对这个错误,我们可以在README.md 文件中看到解释。Selecting a non-default memory allocator when building Redis is doneby setting the MALLOC environment variabl
摘要由CSDN通过智能技术生成

对于redis安装的这个错误,网上大部分文章的对这个问题的解答都是有误的。所以在这里单列出来。

错误内容:

jemalloc/jemalloc.h: No such file or directory。 image

文档
针对这个错误,我们可以在README.md 文件中看到解释。


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

Verbose build

网上错误解决办法
网上大部分解决办法都是错误的,如下文:

<
  • 3
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值