执行命令以及出现的错误信息:
hadoop@stormspark:~/workspace/redis2.6.13/src$ make test
You need tcl 8.5 or newer in order to run the Redis test
make: *** [test] Error 1
解决方法:
这是由于tcl的版本低于8.5导致的。
需要执行如下操作:
#下载一个高于8.5的版本
wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz
#将安装包解压到指定目录中
sudo tar xzvf tcl8.6.1-src.tar.gz -C /usr/local/
#回到解压后的路径下
cd /usr/local/tcl8.6.1/unix/
#执行配置
sudo ./configure
#编译
sudo make
#安装
sudo make install