Linux安装Redis,在测试阶段即make test出现“You need tcl 8.5 or newer in order to run the Redis test”问题解决方案

Linux安装Redis,在测试阶段即make test出现“You need tcl 8.5 or newer in order to run the Redis test”问题解决方案

1 问题分析

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

解读:您需要tcl 8.5或更高版本才能运行Redis测试;
言下之意就是您没有安装tcl,要不就是您安装的tcl版本过低。这就需要我们进行tcl新版本的安装。

2 安装tcl(linux系统下)

2.1 下载文件

下载tcl网址

http://www.tcl.tk/software/tcltk/download.html

编译说明网址
http://www.tcl.tk/doc/howto/compile.html#unix

2.2 安装tcl

(1)解压文件

sudo tar xzvf tcl8.6.10-src.tar.gz  -C /usr/local/ 
# 解压你所下载版本(本人下载的是8.6.10)的tcl文件到指定的文件中,本人是解压到usr/local中与redis放在同一目录下 

(2)进入指定目录下操作

cd  /usr/local/tcl8.6.10/unix/  

(3)依次进行下属终端操作即可,笔者强调一下一定要家sudo,否则没有权限进行操作(笔者也是走了弯路,网上的大量教程都是没有加sudo的)

sudo ./configure 
sudo make 
sudo make install 
sudo make test

(4)退到redis指定目录,重试make test操作即可

posted @ 2020-02-27 13:17  BertSun  阅读(1528)  评论(0编辑  收藏  举报