您的位置:首页 > 博客中心 > 互联网 >

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

时间:2022-05-11 07:34

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

技术图片

 

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

 

本类排行

今日推荐

热门手游