Fork me on GitHub

CentOS 7.3 安装 Redis 报错“You need tcl 8.5 or newer in order to run the Redis test”

CentOS 7.3 安装 Redis 报错“You need tcl 8.5 or newer in order to run the Redis test”


 

问题说明

个人安装的是 redis-5.0.4,在解压目录下执行完 make 命令后,在 src/ 目录下执行 make test命令 的时候报错,信息如下:

You need tcl 8.5 or newer in order to run the Redis test

 

问题原因

按照错误信息的提示可知:系统中 缺少 tcl 或者 tcl 版本比较老

 

解决方案

1、检查系统中是否有 tcl发现系统中没有安装tcl

rpm -qa | grep tcl

 

2、下载并安装tcl

1)下载 tcl-8.5.13-8.el7.x86_64.rpm

wget http://mirror.centos.org/centos/7/os/x86_64/Packages/tcl-8.5.13-8.el7.x86_64.rpm

 

2)安装 tcl-8.5.13-8.el7.x86_64.rpm

rpm -ivh tcl-8.5.13-8.el7.x86_64.rpm

 

如果在下载的时候,wget 命令执行报错,提示没有安装 wget,可以通过以下命令先安装 wget

yum install -y wget

 

3)安装 tcl 后,再次执行 make test 命令

出现以下提示信息,表示 Redis test 成功

All tests passed without errors!

 

3、验证

1)后台启动 redis-server 服务器端

nohup src/redis-server &

 

2)启动 redis-cli 客户端

src/redis-cli

 

由上图中的 set 和 get 命令的执行结果可以看出:Redis可以正常操作,顺利完成安装! 

 

posted @ 2020-12-24 20:48  龙凌云端  阅读(3645)  评论(0编辑  收藏  举报