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

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

 

问题原因

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

 

解决方案

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

rpm -qa | grep tcl

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

 

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

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

 

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

yum install -y wget

 

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

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

All tests passed without errors!

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

 

3、验证

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

nohup src/redis-server &

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

 

2)启动 redis-cli 客户端

src/redis-cli

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

 

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

 

相关文章: