您的位置:首页 > 数据库 > Redis

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以后再解决。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: