redis linux安装 [adlist.o] Error jemalloc/jemalloc.h: No such file or directory
来源:互联网 发布:mac魔兽世界多少g 编辑:程序博客网 时间:2024/06/08 06:21
安装:
- 通过wget方式直接在linux上下载Redis
wget http://download.redis.io/releases/redis-2.6.17.tar.gz
- 解压下载的redis-2.6.17.tar.gz 文件
tar xzf redis-2.6.17.tar.gz
- 进入解压后的文件夹
cd redis-2.6.17
- 编译安装
make
运行:
- 通过执行src文件夹下的redis-server,可以启动redis服务:
$ src/redis-server
Redis启动画面如下: - 通过执行src文件夹下的redis-cli, 可以访问redis服务。
$ src/redis-cliredis> set foo barOkredis> get foo"bar"
安装过程可能出现的问题:
- CentOS5.7默认没有安装gcc,这会导致我们无法make成功。使用yum安装:
yum -y install gcc
- make时报如下错误:
zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directoryzmalloc.h:55:2: error: #error "Newer version of jemalloc required"make[1]: *** [adlist.o] Error 1make[1]: Leaving directory `/data0/src/redis-2.6.2/src'make: *** [all] Error 2
原因是jemalloc重载了Linux下的ANSI C的malloc和free函数。解决办法:make时添加参数。
make MALLOC=libc
- make之后,会出现一句提示
Hint: To run 'make test' is a good idea ;)
但是不测试,通常是可以使用的。若我们运行make test ,会有如下提示
[devnote@devnote src]$ make testYou need tcl 8.5 or newer in order to run the Redis testmake: ***[test] Error_1
解决办法是用yum安装tcl8.5(或去tcl的官方网站http://www.tcl.tk/下载8.5版本,并参考官网介绍进行安装)
yum install tcl
转:http://www.devnote.cn/article/109.html
1 0
- redis linux安装 [adlist.o] Error jemalloc/jemalloc.h: No such file or directory
- redis linux安装 [adlist.o] Error jemalloc/jemalloc.h: No such file or directory
- redis linux安装 [adlist.o] Error jemalloc/jemalloc.h: No such file or directory
- Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory
- Redis 2.8.19 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法
- Redis 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法
- redis-3.0.7 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法
- Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法
- Redis安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法
- Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法
- Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法
- Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法
- Redis安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法
- Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法
- redis源码安装出现fatal error: jemalloc/jemalloc.h: No such file or directory
- Redis 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法
- Redis安装报错error:jemalloc/jemalloc.h:No such file or directory解决方法
- Redis 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法
- java 类的总结
- 1079. Total Sales of Supply Chain (25)
- Nova state machine simplification
- iOS开发中Touch ID的使用
- 模板编译的小错误
- redis linux安装 [adlist.o] Error jemalloc/jemalloc.h: No such file or directory
- 清空memcache缓存的一些资料
- 所有节点之间的最短路问题
- centos下nginx的安装
- contiki netstack数据收发结构
- Lua程序设计:第1章 开始
- 读书不二
- 用中断方式,实现PIC单片机的串口传输
- FPGA I/O 约束