安装redis时进行测试,确认Redis的功能是否正常。
make test
然后报错如下:
make[1]: 进入目录“/usr/local/redis/src” You need tcl 8.5 or newer in order
to run the Redis test Makefile:225: recipe for target ‘test’ failed
make[1]: *** [test] Error 1 make[1]: 离开目录“/usr/local/redis/src”
Makefile:6: recipe for target ‘test’ failed make: *** [test] Error 2
解决方案: 安装tcl
wget http://downloads.sourceforge.net/tcl/tcl8.6.12-src.tar.gz
sudo tar xzvf tcl8.6.12-src.tar.gz -C /usr/local/
cd /usr/local/tcl8.6.12/unix/
sudo ./configure
sudo make
sudo make install
成功运行test