最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

[已解决]redis安装后去make test出错:You need tcl 8.5 or newer in order to run the Redis test

makefile crifan 6257浏览 0评论

折腾:

[已解决]为Flask的后台任务而在CentOS中安装Redis

期间,

redis去make后,再去试试:

make test

结果出错:

(SIPEvents) ➜  redis-3.2.3 make test
cd src && make test
make[1]: Entering directory `/root/tools/redis-3.2.3/src’
You need tcl 8.5 or newer in order to run the Redis test
make[1]: *** [test] Error 1
make[1]: Leaving directory `/root/tools/redis-3.2.3/src’
make: *** [test] Error 2

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

You need tcl 8.5 or newer in order to run the Redis test. – 王智愚 – 博客园

Redis: You need tcl 8.5 or newer in order to run the Redis test | 58分享

搜:

tcl

Download Tcl/Tk Sources

最新版本好像是:

8.6.6

8.5.19

Tcl-8.6.6

“The Tcl package contains the Tool Command Language, a robust general-purpose scripting language.”

搜看看tcl:

(SIPEvents) ➜  redis-3.2.3 yum search tcl    
Loaded plugins: security
================================================================================== N/S Matched: tcl ===================================================================================
db4-tcl.x86_64 : Development files for using the Berkeley DB (version 4) with tcl
graphviz-tcl.x86_64 : Tcl extension & tools for graphviz
hamlib-tcl.x86_64 : Hamlib radio control library TCL binding
itcl.i686 : Object oriented extensions to Tcl and Tk
itcl.x86_64 : Object oriented extensions to Tcl and Tk
itcl-devel.i686 : Development headers and libraries for linking against itcl
itcl-devel.x86_64 : Development headers and libraries for linking against itcl
jimtcl.i686 : A small embeddable Tcl interpreter
jimtcl.x86_64 : A small embeddable Tcl interpreter
jimtcl-devel.i686 : Development files for jimtcl
。。。
tcl-togl.x86_64 : A Tk OpenGL widget
tk.i686 : The graphical toolkit for the Tcl scripting language
tk.x86_64 : The graphical toolkit for the Tcl scripting language
tkcon.noarch : Tcl GUI console
tktable.x86_64 : Table/matrix widget extension to Tcl/Tk
  Name and summary matches only, use “search all” for everything.
(SIPEvents) ➜  redis-3.2.3 yum install -y tcl
Loaded plugins: security
Setting up Install Process
Resolving Dependencies

<div–<> Running transaction check

<div–<-> Package tcl.x86_64 1:8.5.7-6.el6 will be installed

<div–<> Finished Dependency Resolution

Dependencies Resolved
=======================================================================================================================================================================================
 Package                                 Arch                                       Version                                             Repository                                Size
=======================================================================================================================================================================================
Installing:
 tcl                                     x86_64                                     1:8.5.7-6.el6                                       base                                     1.9 M
Transaction Summary
=======================================================================================================================================================================================
Install       1 Package(s)
Total download size: 1.9 M
Installed size: 4.4 M
Downloading Packages:
tcl-8.5.7-6.el6.x86_64.rpm                                                                                                                                      | 1.9 MB     00:01     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:tcl-8.5.7-6.el6.x86_64                                                                                                                                            1/1 
  Verifying  : 1:tcl-8.5.7-6.el6.x86_64                                                                                                                                            1/1 
Installed:
  tcl.x86_64 1:8.5.7-6.el6                                                                                                                                                             
Complete!

即可安装了8.5.7的tcl了。

再去试试,即可:

make test

测试完全通过:

[ok]: RDB encoding loading test
[ok]: ZREMRANGEBYLEX fuzzy test, 100 ranges in 128 element sorted set – ziplist
[ok]: ZSETs skiplist implementation backlink consistency test – ziplist
[ok]: AOF rewrite of set with intset encoding, int data
[ok]: Server started empty with non-existing RDB file
[ok]: Server started empty with empty RDB file
[ok]: Old Big Linked list: SORT BY key
[ok]: Old Big Linked list: SORT BY key with limit
[ok]: AOF rewrite of set with hashtable encoding, int data
[ok]: Server should not start if RDB is corrupted
[12/42 done]: integration/rdb (3 seconds)
Testing integration/convert-zipmap-hash-on-load
[ok]: RDB load zipmap hash: converts to ziplist
[ok]: AOF rewrite of hash with ziplist encoding, string data
[ok]: RDB load zipmap hash: converts to hash table when hash-max-ziplist-entries is exceeded
。。。
[ok]: MASTER and SLAVE consistency with EVALSHA replication
[39/42 done]: integration/replication-3 (125 seconds)
[ok]: PFDEBUG GETREG returns the HyperLogLog raw registers
[ok]: PFADD / PFCOUNT cache invalidation works
[40/42 done]: unit/hyperloglog (73 seconds)
[ok]: ziplist implementation: encoding stress testing
[41/42 done]: unit/type/list-3 (131 seconds)
[ok]: Client output buffer hard limit is enforced
[ok]: Client output buffer soft limit is not enforced if time is not overreached
[ok]: Client output buffer soft limit is enforced if time is overreached
[42/42 done]: unit/obuf-limits (123 seconds)
                   The End
Execution time of different units:
  0 seconds – unit/printver
  0 seconds – unit/type/incr
  1 seconds – unit/auth
  1 seconds – unit/keyspace
  2 seconds – unit/scan
  1 seconds – unit/quit
  3 seconds – unit/multi
  6 seconds – unit/protocol
  10 seconds – unit/expire
  20 seconds – unit/type/list
  9 seconds – integration/aof
  3 seconds – integration/rdb
  2 seconds – integration/convert-zipmap-hash-on-load
  1 seconds – integration/logging
  1 seconds – unit/pubsub
  37 seconds – unit/other
  2 seconds – unit/slowlog
  38 seconds – unit/type/hash
  1 seconds – unit/introspection
  43 seconds – unit/aofrw
  2 seconds – unit/limits
  7 seconds – unit/introspection-2
  49 seconds – unit/type/string
  55 seconds – unit/type/set
  18 seconds – unit/scripting
  8 seconds – unit/bitfield
  58 seconds – integration/replication
  68 seconds – integration/replication-2
  71 seconds – unit/type/zset
  30 seconds – unit/bitops
  47 seconds – unit/maxmemory
  86 seconds – unit/dump
  87 seconds – unit/sort
  41 seconds – unit/memefficiency
  61 seconds – unit/geo
  119 seconds – unit/type/list-2
  114 seconds – integration/replication-psync
  121 seconds – integration/replication-4
  125 seconds – integration/replication-3
  73 seconds – unit/hyperloglog
  131 seconds – unit/type/list-3
  123 seconds – unit/obuf-limits
\o/ All tests passed without errors!
Cleanup: may take some time… OK
make[1]: Leaving directory `/root/tools/redis-3.2.3/src’

[总结]

redis去make test出错:

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

说明是缺少tcl

去安装:

<code>yum install tcl
</code>

即可。

或者去官网:

Download Tcl/Tk Sources

下载源码,编译安装,也可以。

转载请注明:在路上 » [已解决]redis安装后去make test出错:You need tcl 8.5 or newer in order to run the Redis test

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
85 queries in 0.172 seconds, using 22.08MB memory