centos安装redis6.x报错 make报错 make test报错

安装redis 6.x的时候,你会遇到很多问题,比如下面的:

1、make报错

这时候你遇到的错一般都是因为依赖报的错,如下即可解决:

> gcc -v                             # 查看gcc版本
> yum -y install centos-release-scl  # 升级到9.1版本
> yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils
> scl enable devtoolset-9 bash
#以上为临时启用,如果要长期使用gcc 9.1的话:
> echo "source /opt/rh/devtoolset-9/enable" >>/etc/profile

2、make test报错

这时候make已经没有问题了,make test开始报新的错误:

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

你可以这样解决:

yum install tcl

或者这样解决:

wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz  
tar xzvf tcl8.6.1-src.tar.gz  -C /usr/local/  
cd  /usr/local/tcl8.6.1/unix/  
./configure  
make  
make install

但解决完之后,又有新的问题等你,比如:

[exception]: Executing test client: wrong # args: should be "close channelId".
wrong # args: should be "close channelId"
    while executing
"close $fd write"
    ("uplevel" body line 20)
    invoked from within
"uplevel 1 $code"
    (procedure "test" line 47)
    invoked from within
"test "Non-interactive non-TTY CLI: $name" $code"
    (procedure "test_nontty_cli" line 2)
    invoked from within
"test_nontty_cli "Piping raw protocol" {
        set fd [open_cli "--pipe"]
        fconfigure $fd -blocking true

        # Create a new deferring cli..."
    ("uplevel" body line 259)
    invoked from within
"uplevel 1 $code "
    (procedure "start_server" line 3)
    invoked from within
"start_server {tags {"cli"}} {
    proc open_cli {
   
   {opts "-n 9"}} {
        set ::env(TERM) dumb
        set cmdline [rediscli [srv port] $opts]
       ..."
    (file "tests/integration/redis-cli.tcl" line 3)
    invoked from within
"source $path"
    (procedure "execute_test_file" line 4)
    invoked from within
"execute_test_file $data"
    (procedure "test_client_main" line 10)
    invoked from within
"test_client_main $::test_server_port "
Killing still running Redis server 62927
Killing still running Redis server 63276
Killing still running Redis server 63291
Killing still running Redis server 63306
Killing still running Redis server 63640
Killing still running Redis server 63656
Killing still running Redis server 63669
Killing still running Redis server 63686
Killing still running Redis server 63693
Killing still running Redis server 63718
Killing still running Redis server 64131
Killing still running Redis server 64147
Killing still running Redis server 64376
Killing still running Redis server 64390
Killing still running Redis server 64611
Killing still running Redis server 64815
Killing still running Redis server 64885
Killing still running Redis server 64940
Killing still running Redis server 64952
Killing still running Redis server 65279
Killing still running Redis server 65298
Killing still running Redis server 65326
Killing still running Redis server 65431
make[1]: *** [test] Error 1
make: *** [test] Error 2

目前我没找到解决办法,搁置了,换个版本分分钟搞定 囧~

3、结论

换旧版本!
换旧版本!
换旧版本!
去换之前的版本吧,最后卡到make test报错的问题上没有解决,懒得去弄了,一个简单的数据库搞这么麻烦没必要!

猜你喜欢

转载自blog.csdn.net/csdn_avatar_2019/article/details/128792378