RedBeardLab/rediSQL

Build for Windows

seyedmmousavi opened this issue · 4 comments

As I can not find any info in document about supported platform, I tried to build Redisql on Windows 10. But there is an error:

error: failed to run custom build command for `sync_engine v0.6.0 (C:\redis\rediSQL-1.1.2\sync_engine)`

Caused by:
  process didn't exit successfully: `c:\redis\rediSQL-1.1.2\target\release\build\sync_engine-757c825fdc2c0612\build-script-build` (exit code: 1)
--- stdout
cargo:rerun-if-changed=src/CDeps
cargo:rerun-if-changed="build.rs"
NUM_JOBS = Some("4")
TARGET = Some("x86_64-pc-windows-msvc")
OPT_LEVEL = Some("3")
HOST = Some("x86_64-pc-windows-msvc")
CC_x86_64-pc-windows-msvc = None
CC_x86_64_pc_windows_msvc = None
HOST_CC = None
CC = None
CFLAGS_x86_64-pc-windows-msvc = None
CFLAGS_x86_64_pc_windows_msvc = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
DEBUG = Some("false")
running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\cl.exe" "/nologo" "/MD" "/O2" "/I" "src/CDeps" "/W4" "/Foc:\\redis\\rediSQL-1.1.2\\target\\release\\build\\sync_engine-8c3d738bbcd839a3\\out\\src/CDeps/sqlite_dump.o" "/c" "src/CDeps/sqlite_dump.c"
sqlite_dump.c
src/CDeps/sqlite_dump.c(5): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
exit code: 2

--- stderr


error occurred: Command "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\cl.exe" "/nologo" "/MD" "/O2" "/I" "src/CDeps" "/W4" "/Foc:\\redis\\rediSQL-1.1.2\\target\\release\\build\\sync_engine-8c3d738bbcd839a3\\out\\src/CDeps/sqlite_dump.o" "/c" "src/CDeps/sqlite_dump.c" with args "cl.exe" did not execute successfully (status code exit code: 2).

RediSQL is a pluign for Redis. So you need redis to actually run it.

Does redis runs on windows?

OMG! it is my mistake... My installed version is a Windows port. Although I can install it through Windows 10 Ubuntu bash. So may be possible to build the Redisql within it. isn't it?

Hummm I am not an expert, at all, on wls (which is what you use I guess).

But can you try the release? Maybe it will work out of the box...

This is the very latest RediSQL.

https://github.com/RedBeardLab/rediSQL/suites/662812812/artifacts/5857176

You can try it and let me know!