CentOS 6.5 安装 Redis 执行 make #error "Newer version of jemalloc required"

CentOS 6.5 安装 Redis 执行 make #error "Newer version of jemalloc required"redis

根据你系统安装时或以后安装的选项的状况,可能在安装的过程当中遇到不一样的问题;ui

就像今天遇到的一台机器,安装时出现.net

/bin/sh: cc: command not found

的错误,解决以后又出现这里说的问题;code

[root[@localhost](https://my.oschina.net/u/570656) redis-3.2.0]# make  
cd src && make all  
make[1]: Entering directory `/opt/redis-3.2.0/src'  
    CC adlist.o  
在包含自 adlist.c:34 的文件中:  
zmalloc.h:50:31: 错误:jemalloc/jemalloc.h:没有那个文件或目录  
zmalloc.h:55:2: 错误:#error "Newer version of jemalloc required"  
make[1]: *** [adlist.o] 错误 1  
make[1]: Leaving directory `/opt/redis-3.2.0/src'  
make: *** [all] 错误 2

解决方法:io

make MALLOC=libc
相关文章
相关标签/搜索