相关疑难解决方法(0)

运行make命令时Redis安装失败

运行make命令时,RHEL上的Redis安装失败.以下是输出

cd src && make all
make[1]: Entering directory `/root/Downloads/redis-3.2.0/src'
    CC adlist.o
In file included from adlist.c:34:
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[1]: *** [adlist.o] Error 1
make[1]: Leaving directory `/root/Downloads/redis-3.2.0/src'
make: *** [all] Error 2
Run Code Online (Sandbox Code Playgroud)

redis

10
推荐指数
3
解决办法
1万
查看次数

Redis 失败。Ubuntu 18.04

我正在尝试使用makeRedis 6.0.6.,但是在运行 make 命令时出现此错误:

(.venv) vagrant@vagrant:/vagrant/redis-6.0.6$ make
cd src && make all
make[1]: Entering directory '/vagrant/redis-6.0.6/src'
/bin/sh: 1: pkg-config: not found
    CC Makefile.dep
/bin/sh: 1: pkg-config: not found
make[1]: Warning: File 'Makefile.dep' has modification time 1.3 s in the future
    CC adlist.o
/bin/sh: 1: cc: not found
Makefile:315: recipe for target 'adlist.o' failed
make[1]: *** [adlist.o] Error 127
make[1]: Leaving directory '/vagrant/redis-6.0.6/src'
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 2
Run Code Online (Sandbox Code Playgroud)

安装 pkg-config 后,我现在收到一个不同的错误:

(.venv) vagrant@vagrant:/vagrant/redis-6.0.6$ …
Run Code Online (Sandbox Code Playgroud)

redis vagrant redis-server

2
推荐指数
2
解决办法
1462
查看次数

标签 统计

redis ×2

redis-server ×1

vagrant ×1