NOTE: If your default
python binary is not a version of python2, add the arguments
--python /path/to/python2 to the
Make sure you have the static library (i.e. “librocksdb.a”) in the root directory of your rocksdb installation. If not,
cd there and run
node-gyp configure to generate the build.
node-gyp build to compile RDB.
Assuming everything compiled correctly, you can run the
rdb executable located in the root of the
tools/rdb directory to start the shell. The file is just a shell script that runs the node shell and loads the constructor for the RDB object into the top-level function
API.md for how to use RocksDB from the shell.