Getting started with RocksDB


Hi everyone.
Im getting started with RocksDB and realy want to know what to do to make the project work.
I have next:
and running a default hw project im getting:
error: failed to run custom build command for rocks-sys v0.1.3
What should i do to have a chance to work with RocksDB in my project?


Apparently rocks-sys needs to build some C dependencies before it can be compiled. Would you be able to show us the error message? I’m guessing it’ll say you don’t have cmake or git installed… Also, are you trying to do this on a windows machine by any chance? Their README says the tests currently pass on Mac and Linux, but doesn’t mention anything about working for Windows.


Sir, Im running it on Windows10.
And here is the error msg:

error: failed to run custom build command for rocks-sys v0.1.3
process didn’t exit successfully: D:\Rust\Rocksdb\target\debug\build\rocks-sys-93a66bc77e8ca638\build-script-build (exit code: 101)
— stderr
thread ‘main’ panicked at ’

Internal error occurred: Command “C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64\cl.exe” “/nologo” “/MD” “/O2” “/Z7” “/I” “.” “-std=c++11” “/FoD:\Rust\Rocksdb\target\debug\build\rocks-sys-030289e6f34ca216\out\rocks\cache.o” “/c” “rocks/” with args “cl.exe” did not execute successfully (status code exit code: 2).

', C:\Users\Lenovo.cargo\registry\src\\gcc-0.3.54\src\
stack backtrace:
0: 0x7ff7e0e350a1 - std::sys_common::backtrace::_print
at C:\projects\rust\src\libstd\sys_common\
1: 0x7ff7e0e40adc - std::panicking::default_hook::{{closure}}
at C:\projects\rust\src\libstd\
2: 0x7ff7e0e407c5 - std::panicking::default_hook
at C:\projects\rust\src\libstd\
3: 0x7ff7e0e410b5 - std::panicking::rust_panic_with_hook
at C:\projects\rust\src\libstd\
4: 0x7ff7e0e40f48 - std::panicking::begin_panicalloc::string::String
at C:\projects\rust\src\libstd\
5: 0x7ff7e0e40e21 - std::panicking::begin_panic_fmt
at C:\projects\rust\src\libstd\
6: 0x7ff7e0dd82c3 - gcc::fail
at C:\Users\Lenovo.cargo\registry\src\\gcc-0.3.54\src\
7: 0x7ff7e0dc9b45 - gcc::Build::compile
at C:\Users\Lenovo.cargo\registry\src\\gcc-0.3.54\src\
8: 0x7ff7e0dc3655 - build_script_build::main
at C:\Users\Lenovo.cargo\registry\src\\rocks-sys-0.1.3\
9: 0x7ff7e0e422e1 - panic_unwind::__rust_maybe_catch_panic
at C:\projects\rust\src\libpanic_unwind\
10: 0x7ff7e0e41851 - std::rt::lang_start
at C:\projects\rust\src\libstd\
11: 0x7ff7e0dc36c6 - main
12: 0x7ff7e0e49262 - __tmainCRTStartup
at f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:626
13: 0x7ffbf96e1fe3 - BaseThreadInitThunk


You should probably create an issue on their issue tracker because that’s probably a bug. You may find that Windows isn’t yet supported.