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报错的问题上没有解决,懒得去弄了,一个简单的数据库搞这么麻烦没必要!

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

cgv3

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值