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

Redis 3.0.2 安装报错You need tcl 8.5 ...

DB:Redis 3.0.2

OS:Centos 7.5


错误:

[root@cjcos01 src]# make test

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

make: *** [test] Error 1

解决方案:

[root@cjcos01 local]# wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz 

[root@cjcos01 local]# ll -rth tcl8.6.1-src.tar.gz 

-rw-r--r-- 1 root root 8.4M Sep 20  2013 tcl8.6.1-src.tar.gz

[root@cjcos01 local]# tar -zxvf tcl8.6.1-src.tar.gz 

[root@ cjcos01 local]# cd  /usr/local/tcl8.6.1/unix/  

[root@ cjcos01 local]#  ./configure  

[root@ cjcos01 local]#  make  

[root@ cjcos01 local]#  make install

再次安装redis

[root@ cjcos01 src]# make test 

[root@ cjcos01 src]# make install 

[root@ cjcos01 src]# pwd

/usr/local/redis/src

[root@ cjcos01 src]# ./redis-server ../config/redis.conf 

[root@ cjcos01 src]# ./redis-cli 

127.0.0.1:6379> set hello world

OK

127.0.0.1:6379> get hello

"world"


请使用浏览器的分享功能分享到微信等