kstyrc / embedded-redis

Redis embedded server for Java integration testing
840 stars 368 forks source link

The 0.6 version can't run on win32, how should i do? #63

Open z00221310 opened 8 years ago

z00221310 commented 8 years ago

The 0.6 version can't run on win32, how should i do? the error message
The image file D:\Redis\embedded-redis-master\redis-server-2.8.19.exe is valid, but is for a machine type other than the current machine.

kstyrc commented 8 years ago

The fix for that was merge with master, but I haven't got a chance to release it yet... Stay tuned.

z00221310 commented 8 years ago

My project has not worked now, But i can't rollback the versoin because i need use the sentinel model.I really hope see the fixed version as soon as possible. Best regards.

kstyrc commented 8 years ago

Will try to do asap. For now, you can use the hint in similar issue: https://github.com/kstyrc/embedded-redis/issues/61#issuecomment-148684095

RedisExecProvider customProvider = RedisExecProvider.defaultProvider()
  .override(OS.WINDOWS, Architecture.x86, "/path/to/windows/redis-x86");   // <-- provide path to x86 binary

RedisServer redisServer = new RedisServer(customProvider, 6379);

just compile your own redis on win32 and tell RedisServer to use this binary instead of default.

raulvillalbamedina commented 8 years ago

this case are fixed? version?