{channel.title!channel.name} - 楚淮公司周东林

centos6Mine版本安装Redis

安装过程中遇到报错zmalloc.h:55:2: error: #error "Newer version of jemalloc required";You need tcl 8.5 or newer in order to run the Redis test


第一次报错:

zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory
zmalloc.h:55:2: error: #error "Newer version of jemalloc required"
make[1]: *** [adlist.o] Error 1
make[1]: Leaving directory `/data0/src/redis-2.6.2/src'
make: *** [all] Error 2

应该是没有安装gcc导致:

    yum install cpp
    yum install binutils
    yum install glibc
    yum install glibc-kernheaders
    yum install glibc-common
    yum install glibc-devel
    yum install gcc
    yum install make

为了防止在报错都yum install 一下

第二次 make test

    CC lolwut.o
    CC lolwut5.o
    LINK redis-server
    INSTALL redis-check-aof
You need tcl 8.5 or newer in order to run the Redis test
make[1]: *** [test] Error 1
make[1]: Leaving directory `/opt/redis-5.0.0/src'
make: *** [test] Error 2

这次提示 tcl 版本低

    yum install tcl

​继续报错

make[1]: *** [test] Error 1
make[1]: Leaving directory `/opt/redis-5.0.0/src'
make: *** [test] Error 2

​下面具体错误

Logged warnings (pid 14138):
(none)
[exception]: Executing test client: couldn't execute "src/redis-benchmark": no such file or directory.
couldn't execute "src/redis-benchmark": no such file or directory
    while executing
 
I/O error reading reply
    while executing
"{*}$r type $k"
    (procedure "createComplexDataset" line 27)
    invoked from within
"createComplexDataset $r $ops"
解决方法:
make distclean
​make
make test
 

!!! WARNING The following tests failed:
*** [err]: GEOADD + GEORANGE randomized test in tests/unit/geo.tcl
Expected 'OK' to equal or match 'FAIL'
Cleanup: may take some time... OK
make[1]: *** [test] Error 1
make[1]: Leaving directory `/opt/redis-5.0.0/src'
make: *** [test] Error 2

这个报错是告警由于服务器配置太低导致的,扩CPU 重新在跑就正常了。

 


\o/ All tests passed without errors!
Cleanup: may take some time... OK
make[1]: Leaving directory `/opt/redis-5.0.0/src'

 


浏览.发表于:2018-11-01 15:37:30