2019独角兽企业重金招聘Python工程师标准>>>

本文为大家讲解的是Redis 2.8.18 安装报错 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
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

转载于:https://my.oschina.net/u/2356966/blog/469298

Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No s相关推荐

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

    http://www.phperz.com/article/14/1219/42002.html --------------------------------------------------

  2. npm安装报错Error: EPERM: operation not permitted解决方案

    电脑重装系统后重新配置环境安装node后,npm命令安装报错 Error: EPERM: operation not permitted npm ERR! code EPERM npm ERR! sy ...

  3. 2021-10-24 CMake安装报错Error when bootstrapping CMake: Cannot find appropriate C compiler on this syst

    一.报错 Error when bootstrapping CMake: Cannot find appropriate C compiler on this system. Please speci ...

  4. ArcGIS安装报错 Error: Error 1935: An error occurred during the installation of assembly

    缘起 帮客户安装ArcGIS,报错Error: Error 1935: An error occurred during the installation of assembly,然后查资料说让卸载. ...

  5. blast2go centos mysql 5.7++ 安装报错ERROR 1819 (HY000) at line 4

    1)解决导入数据mysql -uroot -p passwd <b2gdb.sql 报错ERROR 1819 (HY000) at line 4: Your password does not ...

  6. 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 ...

  7. uwsgi 安装报错 plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory

    1. Python3 安装 uwsgi 报错 直接使用命令 sudo pip3 install uwsgi 安装如下错误: ubuntu@ubuntu:~/Downloads$ sudo pip3 i ...

  8. yum安装报错Error:Nothing to do

    报错信息 No package nginx available Error:Nothing to do 解决办法 : 方法一. 更换源 备份 mv /etc/yum.repos.d/CentOS-Ba ...

  9. Mac系统brew install 安装报错 Error: Failure while executing

    Mac安装Apache http服务器,brew install httpd 时报错 报错信息如下: ==> Installing httpd dependency: nghttp2 ==> ...

最新文章

  1. error: jump to label ‘XXXX’ [-fpermissive]
  2. 今天改bug遇到一个ie8样式错乱问题
  3. 为什么作为开发人员面试完全是胡说八道
  4. 心理阴影面积 (5 分)
  5. 基于链表的模拟21点游戏 C语言
  6. seaborn_Seaborn Kdeplot –综合指南
  7. 纯个人整理!分享珍藏很久的《手把手AI项目》合集手册(附链接)
  8. C++实现计算器功能(包括计算含未知量的式子),输出后缀表达式
  9. VS2005、vs2008+WinXPDDK+DDKWizard配置驱动开发环境
  10. python杂志订阅系统详细设计_图书管理系统详细设计说明书(完整).doc
  11. C语言error2005,c链接器错误LNK2005已在SDL中定义
  12. 女生学大数据好还是计算机好?都适合女生吗?就业前景好吗?
  13. matplotlib 设置坐标轴位置(spines),设置坐标别名(xticks,yticks)
  14. win10下局域网不同电脑间如何实现文件共享?
  15. 关于虚拟机的十个基本小技巧
  16. STM32小项目之dht11在oled上显示温湿度
  17. 二叉树Ⅰ · 树型结构 · 二叉树 · 满二叉树 · 完全二叉树 · 二叉树的性质 · 二叉树的存储
  18. 解决 {ret:100030,msg:this api without user authorization} android QQ第三发登录成功后获取用户信息失败的问题
  19. FreeCAD sketcher草图模式下旋转部分绘制的图形
  20. Cadence Allegro学习之UI界面+创建常见表贴封装

热门文章

  1. ThreadPoolExecutor线程池的理解与应用
  2. 海贼王热血航线正在连接服务器,航海王热血航线连接服务器失败?解决方法一览...
  3. 2020年快手校招JAVA岗笔试第三题
  4. 2020年1月份学习总结,死线(Deadline)杀死团队拖延症
  5. Linux 系统审计操作行为的 5 种解决方案
  6. 需求分析中应该注意的问题
  7. 项目管理自动化实践之路
  8. ASP.NET中使用一般处理程序ashx作为后台处理实现响应get和post请求
  9. Redis常用命令之操作String类型
  10. Winform中设置ZedGraph当前所有曲线的颜色