jemalloc/jemalloc.h: No such file or directory

Redis 2.6.9 安装报错,提示:

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 MALLOC=libc

Redis安装报错error:jemalloc/jemalloc.h:Nosuchfileordirectory解决方法

错误描述 安装Redis 2.8.18时报错: 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.8.18时报错:

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

原因分析

在README 有这个一段话。

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

说关于分配器allocator, 如果有MALLOC 这个 环境变量, 会有用这个环境变量的 去建立Redis。

而且libc 并不是默认的 分配器, 默认的是 jemalloc, 因为 jemalloc 被证明 有更少的 fragmentation problems 比libc。

但是如果你又没有jemalloc 而只有 libc 当然 make 出错。 所以加这么一个参数。

解决办法

make MALLOC=libc

posted on 2015-11-14 20:17 秦瑞It行程实录 阅读(...) 评论(...) 编辑 收藏

转载于:https://www.cnblogs.com/ruiy/p/4964982.html

jemalloc/jemalloc.h: No such file or directory相关推荐

  1. redis 安装错误 jemalloc.h: No such file or directory

    为什么80%的码农都做不了架构师?>>>    错误描述 [root@mysql-rtb-slave redis-4.0.1]# make && make insta ...

  2. 解决编译redis报错zmalloc.h:50:10: fatal error: jemalloc/jemalloc.h: No such file or directory

    解决方法 进入redis的目录后运行: sudo make 时报错:zmalloc.h:50:10: fatal error: jemalloc/jemalloc.h: No such file or ...

  3. Centos7 安装Redis,报错[adlist.o] Error jemalloc/jemalloc.h: No such file or directory

    redis官网 https://redis.io/download 安装 $ wget http://download.redis.io/releases/redis-5.0.4.tar.gz $ t ...

  4. Redis 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法

    错误描述 安装Redis 2.8.18时报错: zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory zmall ...

  5. linux redis release.c:37:10: fatal error: release.h: No such file or directory

    ​​​​​​(1条消息) redis源码安装出现fatal error: jemalloc/jemalloc.h: No such file or directory_feinifi的博客-CSDN博 ...

  6. 【Qt】错误GL/gl.h: No such file or directory的解决方法(以及cannot find -lGL解决方法)

    1.问题描述 QtCreator第一次编译时,报错GL/gl.h: No such file or directory 错误信息如下: /home/Qt5.6.3/5.6.3/gcc_64/inclu ...

  7. 【linux】error: stdio.h: No such file or directory

    ubuntu 默认没有C和C++编译环境 ubuntu 默认没有C和C++编译环境,新装的ubuntu,使用gcc编译时,会报错,找不到某某头文件等.在编译一个demo,如hello world时,会 ...

  8. Python.h: No such file or directory

    安装python-devel包解决这个问题 # pip install netifaces     DEPRECATION: Python 2.6 is no longer supported by ...

  9. 报错解决:fatal error: json/json.h: No such file or directory

    晚上在做编译原理作业的时候遇到了报错: ASTNodes.h:6:23: fatal error: json/json.h: No such file or directory#include < ...

最新文章

  1. LeetCode: 102. Binary Tree Level Order Traversal
  2. Java运行作业控制语言_Java安全——语言本身的设计
  3. 如何从值中删除数组中的项目?
  4. 俄罗斯最新开源的牛掰数据库ClickHouse
  5. springboot不能加载https的证书文件(二)
  6. 转:编写高效的Android代码
  7. 大创中期报告怎么写_课题研究中期报告怎么写?这篇范文很说的很详细
  8. 实时体积云渲染(地平线):一.云的生成
  9. JAVA:jar包下载地址大全
  10. 以太坊使用及代币开发实战
  11. arm开发板与PC通讯及访问外网
  12. PyQt5桌面应用开发----环境安装配置及第一个桌面应用程序
  13. android 使用ios字体大小,ios和android上的字体大小不同
  14. success: function(res) {} 和 success: res = {}
  15. Android项目实战--手机卫士35--清除程序缓存
  16. Linux认证考试心得:RHCE考试心得
  17. 打印机显示无法连接计算机,网络打印提示:Windows无法连接到打印机,请检查打印机名并重试...
  18. pip install下载一些包很慢,可-i 从豆瓣源下载
  19. 黎曼猜想有可能证明哥德巴赫猜想
  20. React中useMemo的简单使用

热门文章

  1. CentOS7安装Redis,全网最快安装教程
  2. Java 性能优化系列之1[设计与程序优化]
  3. [Perforce]password (P4PASSWD) invalid or unset. 的错误解决
  4. 计算机辅助平面绘图是干嘛的,【1人回答】AutoCAD画图是什么,干什么用的?-3D溜溜网...
  5. mysql sql 多选项_Mysql-Sqlalchemy-多表操作
  6. python跟谁学_学 Python 都用来干嘛的?
  7. php程序301重定向,php 301重定向的实现方法
  8. P3919 【模板】可持久化数组(可持久化线段树/平衡树)(入门第一题)
  9. 软件portable
  10. java 装饰者_java装饰者模式怎么用?