ubuntu - 在 Ubuntu 上对 Redis 4.0.10 进行测试失败
问题描述
我正在尝试在 Windows 10 内运行的 Ubuntu 上编译最新稳定版本的 Redis (4.0.10)。“make”期间没有错误。但是当我运行“make test”时,我最后会遇到以下错误。我是在 ubuntu 上编译东西的新手。
[err]: PUBLISH/SUBSCRIBE after UNSUBSCRIBE without arguments in tests/unit/pubsub.tcl
Expected '1' to be equal to '0'
[err]: PUBLISH/PSUBSCRIBE after PUNSUBSCRIBE without arguments in tests/unit/pubsub.tcl
Expected '1' to be equal to '0'
[exception]: Executing test client: child process exited abnormally.
child process exited abnormally
while executing
"exec kill -9 $bench_pid"
("uplevel" body line 47)
invoked from within
"uplevel 1 $code "
(procedure "start_server" line 3)
invoked from within
"start_server {} {
# Config
set debug_msg 0 ; # Enable additional debug messages
set no_exit 0 ; # Do no..."
("uplevel" body line 2)
invoked from within
"uplevel 1 $code "
(procedure "start_server" line 3)
invoked from within
"start_server {} {
start_server {} {
# Config
set debug_msg 0 ; # Enable additional debug messages
set no_exit 0 ..."
("uplevel" body line 2)
invoked from within
"uplevel 1 $code "
(procedure "start_server" line 3)
invoked from within
"start_server {tags {"psync2"}} {
start_server {} {
start_server {} {
# Config
set debug_msg 0 ; # Enable additional debug mess..."
(file "tests/integration/psync2-reg.tcl" line 7)
invoked from within
"source $path"
(procedure "execute_tests" line 4)
invoked from within
"execute_tests $data"
(procedure "test_client_main" line 10)
invoked from within
"test_client_main $::test_server_port "
Makefile:242: recipe for target 'test' failed
make[1]: *** [test] Error 1
make[1]: Leaving directory '/home/myuser/Development/Redis/redis-4.0.10/src'
Makefile:6: recipe for target 'test' failed
make: *** [test] Error 2
解决方案
我也有这个问题。我试过了
taskset -c 0 make test
在 Github 上看到一些类似的帖子之后,这对我也没有任何作用。