我正在建立一个新的,专用的,中心6.4系统与红色。我安装了很多次redis,但从来没有碰到过这个问题(以前也从来没有安装过centos 6.4 )。
cd redis-2.6.16
sudo make install错误:
MAKE jemalloc
cd jemalloc && ./configure --with-lg-quantum=3 --with-jemalloc-prefix=je_ --enable-cc-silence CFLAGS="-std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops " LDFLAGS=""
/bin/sh: ./configure: Permission denied
make[2]: *** [jemalloc] Error 126
make[2]: Leaving directory `/tmp/redis32/redis-3.2.6/deps'
make[1]: [persist-settings] Error 2 (ignored)
sh: ./mkreleasehdr.sh: Permission denied
and later:
zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory
zmalloc.h:55:2: error: #error "Newer version of jemalloc required"当我试图直接构建jemalloc (来自redis的/src区域)时,其他错误包括:
cd src && make jemalloc
sh: ./mkreleasehdr.sh: Permission denied
make[1]: Entering directory `/tmp/rediswork/redis-2.6.16/src'
make[1]: *** No rule to make target `jemalloc'. Stop.
make[1]: Leaving directory `/tmp/rediswork/redis-2.6.16/src'
make: *** [jemalloc] Error 2我也尝试了redis 2.6.7并且有同样的问题。
我挖遍了,找不到前进的路。
发布于 2014-01-08 02:08:28
我在centos 6.4上遇到了同样的问题,必须运行以下命令:
cd deps
make hiredis jemalloc linenoise lua geohash-int
cd ..
make install我不知道为什么这些道具没有建好,我以为它们是过去的。然而,这让我启动并运行了我需要的redis版本。
发布于 2015-01-23 23:53:27
在第一次失败后,我也犯了同样的错误(gcc)。
因此,在安装gcc之后,make的另一次尝试给出了以下错误:
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命令失败后留在这里的一些文件造成的。显然,我必须用命令清除这些文件:
make distclean 然后又是make,它起作用了。
来源:https://groups.google.com/forum/#!topic/redis-db/-guYpX2OCSk
发布于 2013-09-30 04:46:13
你试过安装它要求的软件包了吗?
yum install jemalloc-devel这可以在EPEL存储库中找到,您应该已经将它添加到CentOS系统中了。
想想看,redis也在埃佩尔.
https://unix.stackexchange.com/questions/94479
复制相似问题