Redis-3.0.7_ubuntu下编译
2016-04-11 20:30
1001 查看
背景
回到家,本想接着看源码,但没有debug环境,突然想起自己原先将一块机械硬盘作成了ubuntu14.10,遂下载了redis3.0.7的源码,准备编译,然后倒入eclipse中进行DEBUG调试,但在编译的过程中,出现如下错误信息。liblua.a(loslib.o): In function `os_tmpname': loslib.c:(.text+0x28b): warning: the use of `tmpnam' is dangerous, better use `mkstemp' cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -c -o luac.o luac.c cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -c -o print.o print.c cc -o luac luac.o print.o liblua.a -lm make[3]: Leaving directory '/media/lijp/学习/DataBase/redis-3.0.7/deps/lua/src' MAKE jemalloc cd jemalloc && ./configure --with-jemalloc-prefix=je_ --enable-cc-silence CFLAGS="-std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops " LDFLAGS="" /bin/sh: 1: ./configure: Permission denied Makefile:79: recipe for target 'jemalloc' failed make[2]: *** [jemalloc] Error 126 make[2]: Leaving directory '/media/lijp/学习/DataBase/redis-3.0.7/deps' Makefile:142: recipe for target 'persist-settings' failed make[1]: [persist-settings] Error 2 (ignored) CC adlist.o In file included from adlist.c:34:0: zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory #include <jemalloc/jemalloc.h> ^ compilation terminated. Makefile:197: recipe for target 'adlist.o' failed make[1]: *** [adlist.o] Error 1 make[1]: Leaving directory '/media/lijp/学习/DataBase/redis-3.0.7/src' Makefile:6: recipe for target 'all' failed make: *** [all] Error 2
最后根据提示信息发现, mkreleasehdr.sh 没有可执行权限,遂使用chmod命令。
但新的问题出现了,chmod命令没有起作用,初步调查的原因是:我的ubuntu系统时挂在在widnows下的,无论是root用户下还是使用sudo,都没有作用。在网上找到了一些帖子怎么去赋权限,但没有亲自去尝试。作为一个AI以后再解决。
相关文章推荐
- 干货--Redis+Spring+Struts2实现网站计算器应用项目案例
- Spring Boot使用redis做数据缓存
- Spring Boot使用redis做数据缓存
- Spring Boot使用redis做数据缓存
- Linux服务器如何自定义安装Redis
- Redis PHP通用类
- 分布式缓存Redis使用心得
- CentOS6.5编译安装Redis
- redis 3.0的集群部署
- redis数据持久化
- redis集群之REDIS CLUSTER
- Redis本地环境搭建
- redis高可用之REDIS SENTINEL
- redis学习日志 【一、安装】
- Redis简介以及如何在Windows上安装Redis
- Redis做数据延期处理管道修改
- Redis短结构与分片
- 利用redis和php-resque实现后台任务
- Redis 数据类型
- NoSql database——Redis