Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No s
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相关推荐
- Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法
http://www.phperz.com/article/14/1219/42002.html --------------------------------------------------
- npm安装报错Error: EPERM: operation not permitted解决方案
电脑重装系统后重新配置环境安装node后,npm命令安装报错 Error: EPERM: operation not permitted npm ERR! code EPERM npm ERR! sy ...
- 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 ...
- ArcGIS安装报错 Error: Error 1935: An error occurred during the installation of assembly
缘起 帮客户安装ArcGIS,报错Error: Error 1935: An error occurred during the installation of assembly,然后查资料说让卸载. ...
- 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 ...
- 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 ...
- 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 ...
- yum安装报错Error:Nothing to do
报错信息 No package nginx available Error:Nothing to do 解决办法 : 方法一. 更换源 备份 mv /etc/yum.repos.d/CentOS-Ba ...
- Mac系统brew install 安装报错 Error: Failure while executing
Mac安装Apache http服务器,brew install httpd 时报错 报错信息如下: ==> Installing httpd dependency: nghttp2 ==> ...
最新文章
- error: jump to label ‘XXXX’ [-fpermissive]
- 今天改bug遇到一个ie8样式错乱问题
- 为什么作为开发人员面试完全是胡说八道
- 心理阴影面积 (5 分)
- 基于链表的模拟21点游戏 C语言
- seaborn_Seaborn Kdeplot –综合指南
- 纯个人整理!分享珍藏很久的《手把手AI项目》合集手册(附链接)
- C++实现计算器功能(包括计算含未知量的式子),输出后缀表达式
- VS2005、vs2008+WinXPDDK+DDKWizard配置驱动开发环境
- python杂志订阅系统详细设计_图书管理系统详细设计说明书(完整).doc
- C语言error2005,c链接器错误LNK2005已在SDL中定义
- 女生学大数据好还是计算机好?都适合女生吗?就业前景好吗?
- matplotlib 设置坐标轴位置(spines),设置坐标别名(xticks,yticks)
- win10下局域网不同电脑间如何实现文件共享?
- 关于虚拟机的十个基本小技巧
- STM32小项目之dht11在oled上显示温湿度
- 二叉树Ⅰ · 树型结构 · 二叉树 · 满二叉树 · 完全二叉树 · 二叉树的性质 · 二叉树的存储
- 解决 {ret:100030,msg:this api without user authorization} android QQ第三发登录成功后获取用户信息失败的问题
- FreeCAD sketcher草图模式下旋转部分绘制的图形
- Cadence Allegro学习之UI界面+创建常见表贴封装