免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5051 | 回复: 3
打印 上一主题 下一主题

[服务应用] centos6.4上编译redis遇到问题,能帮帮我吗? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-04-20 09:58 |只看该作者 |倒序浏览
本帖最后由 qweiu 于 2013-04-20 10:08 编辑

首先说明一下,centos6.4是安装在vmware上的,32位的
redis make成功但make test就报错:
我现在怀疑是不是tcl8.5编译的有问题?
因为tcl8.5 make test时确实有报错:

Sourced 137 Test Files.
Files with failing tests: http.test httpold.test socket.test
==== http-3.11 http::geturl querychannel with -command FAILED
==== socket-2.10 close on accept, accepted socket lives FAILED
==== Contents of test case:

    set done 0
    set timer [after 20000 "set done timed_out"]
    set ss [socket -server accept 0]
    proc accept {s a p} {
        global ss
        close $ss
        fileevent $s readable "readit $s"
        fconfigure $s -trans lf
    }
    proc readit {s} {
        global done
        gets $s
        close $s
        set done 1
    }
    set cs [socket [info hostname] [lindex [fconfigure $ss -sockname] 2]]
    puts $cs hello
    close $cs
    vwait done
    after cancel $timer
    set done

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: couldn't open socket: connection refused
    while executing
"socket [info hostname] [lindex [fconfigure $ss -sockname] 2]"
    ("uplevel" body line 17)
    invoked from within
"uplevel 1 $script"
---- errorCode: POSIX ECONNREFUSED {connection refused}
==== socket-2.10 FAILED

[root@wei soft]# cd redis-2.6.12
[root@wei redis-2.6.12]# make test
好像是测试 tests/integration/rdb.tcl文件时报错
具体如下:

[ok]: LREM deleting objects that may be int encoded - ziplist
[ok]: Regression for bug 593 - chaining BRPOPLPUSH with other blocking cmds
[ok]: AOF rewrite of zset with skiplist encoding, string data
[12/32 done]: unit/type/list (27 seconds)
Testing unit/introspection
[ok]: AOF rewrite of zset with ziplist encoding, int data

[exception]: Executing test client: assertion:Server started even if RDB was unreadable!.
assertion:Server started even if RDB was unreadable!
    while executing
"error "assertionmsg""
    (procedure "fail" line 2)
    invoked from within
"fail "Server started even if RDB was unreadable!""
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $elsescript"
    (procedure "wait_for_condition" line 7)
    invoked from within
"wait_for_condition 50 100 {
        [string match {*Fatal error loading*}  [exec tail -n1 < [dict get $srv stdout]]]
    } else {
        fail "Server..."
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $code"
    (procedure "start_server_and_kill_it" line 5)
    invoked from within
"start_server_and_kill_it [list "dir" $server_path] {
    wait_for_condition 50 100 {
        [string match {*Fatal error loading*} \
            [exec..."
    (file "tests/integration/rdb.tcl" line 57)
    invoked from within
"source $path"
    (procedure "execute_tests" line 4)
    invoked from within
"execute_tests $data"
    (procedure "test_client_main" line 9)
    invoked from within
"test_client_main $::test_server_port "
make[1]: *** [test] 错误 1
make[1]: Leaving directory `/root/soft/redis-2.6.12/src'
make: *** [test] 错误 2

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
2 [报告]
发表于 2013-04-21 18:37 |只看该作者
make没报错,可以安装,test不是必须的步骤

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
3 [报告]
发表于 2013-04-22 11:01 |只看该作者
忽略test,直接安装。

论坛徽章:
0
4 [报告]
发表于 2013-04-22 11:43 |只看该作者
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP