源码的方式安装redis,在make test时报错“You need tcl 8.5 or newer in order to run the Redis test”
1 2 3 4 5 6 7 8 9 10 |
[rdstst1@mydb redis-4.0.1]$ make test cd src && make test make[1]: Entering directory `/mydb1/soft/redis-4.0.1/src' CC Makefile.dep make[1]: Leaving directory `/mydb1/soft/redis-4.0.1/src' make[1]: Entering directory `/mydb1/soft/redis-4.0.1/src' You need tcl 8.5 or newer in order to run the Redis test make[1]: *** [test] Error 1 make[1]: Leaving directory `/mydb1/soft/redis-4.0.1/src' make: *** [test] Error 2 |
第一次接触redis,遇到这个错误时,查了一下错误的信息,其中关键是tcl 8.5。关于Tcl,如下解释:
Tcl (最早称为“工具命令语言””Tool Command Language”, 但是目前已经不是这个含义,不过我们仍然称呼它为TCL)是一种 脚本语言。 由John Ousterhout创建。 TCL很好学,功能很强大。TCL经常被用于 快速原型开发,脚本编程, GUI和测试等方面。
查看系统是否安装了Tcl,发现操作系统确实还没有安装Tcl(除了yum list还可以用rpm -qa|grep tcl来检查操作系统是否安装了Tcl),不过好在操作系统的镜像文件里面是8.5版本的。
1 2 3 4 5 6 7 8 9 10 11 |
[root@mydb ~]# yum list tcl Loaded plugins: product-id, refresh-packagekit, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity localyum | 4.0 kB 00:00 ... Available Packages tcl.i686 1:8.5.7-6.el6 localyum tcl.x86_64 1:8.5.7-6.el6 localyum [root@mydb ~]# yum install tcl -y |
安装这个之后,就没有报错了。redis也顺利安装。以上只是本次安装过程中遇到的唯一问题。
转载请注明:猫头鹰工作室 » 安装redis在make test时报错“You need tcl 8.5 or newer in order to run the Redis test”