【中间件】redis编译安装报错排查
redis安装报错
1、缺少gcc
错误提示(部分):make[3]: gcc:命令未找到
解决方案:
yum install gcc gcc-c++ -y
2、 缺少jemalloc
错误提示(部分):致命错误:jemalloc/jemalloc.h
解决方案:
wget https://github.com/jemalloc/jemalloc/releases/download/5.1.0/jemalloc-5.1.0.tar.bz2
tar jxvf ./jemalloc-5.1.0.tar.bz2
cd jemalloc-5.1.0
./configure
make & make install
3、报错,deps下组件未编译
错误提示:
cc: 错误:../deps/hiredis/libhiredis.a:没有那个文件或目录
cc: 错误:../deps/lua/src/liblua.a:没有那个文件或目录
cc: 错误:../deps/jemalloc/lib/libjemalloc.a:没有那个文件或目录
解决方案:
cd /home/deploy/redis/redis-4.0.14/deps/
make lua hiredis linenoise jemalloc
4、编译安装成功提示
……
……
……
cd src && make install
make[1]: 进入目录“/home/deploy/redis/redis-4.0.14/src”
LINK redis-server
INSTALL redis-sentinel
CC redis-cli.o
LINK redis-cli
CC redis-benchmark.o
LINK redis-benchmark
INSTALL redis-check-rdb
INSTALL redis-check-aof
Hint: It's a good idea to run 'make test' ;)
INSTALL install
INSTALL install
INSTALL install
INSTALL install
INSTALL install
make[1]: 离开目录“/home/deploy/redis/redis-4.0.14/src”
Failed to execute operation: No such file or directory
Created symlink from /etc/systemd/system/multi-user.target.wants/redis.service to /etc/systemd/system/redis.service.
相关文章: