Hint: It’s a good idea to run ‘make test’ 😉
make[1]: 离开目录“/usr/local/src/redis-6.0.8/src”
然后试一下make test
root@yjw:/usr/local/src/redis-6.0.8# make test
出现以下情况
make[1]: 进入目录“/usr/local/src/redis-6.0.8/src”
CC Makefile.dep
You need tcl 8.5 or newer in order to run the Redis test
make[1]: *** [Makefile:332:test] 错误 1
make[1]: 离开目录“/usr/local/src/redis-6.0.8/src”
make: *** [Makefile:6:test] 错误 2
解决办法:
第一步wget下载: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/
第四步configure一下:sudo ./configure
第五步make:sudo make
第六步make install:sudo make install