From 7a43bc64fd7c2fd669cabbaa968e015da93d00dc Mon Sep 17 00:00:00 2001 From: Tyler Neely Date: Sun, 11 Jan 2015 14:54:21 -0500 Subject: [PATCH] update readme with rocksdb installation procedures --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index acbd5e5..3c791e8 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,16 @@ rust-rocksdb ============ -### running -Install RocksDB. rust-rocksdb has been tested with version 3.8.1 on linux and OSX. +rust-rocksdb has been tested with version 3.8.1 on linux and OSX. +Crate version 0.0.3 should work on the 1/8/15 nightly and 1.0.0 alpha. +###### Prerequisites +```bash +wget https://github.com/facebook/rocksdb/archive/rocksdb-3.8.tar.gz +tar xvf rocksdb-3.8.tar.gz && cd rocksdb-rocksdb-3.8 && make static_lib +``` +From here, you probably want to ```sudo make install``` to copy the library to the system library directory. If you don't want to, or cannot due to your system's security policy, there are many other ways to load a library. One quick and dirty method that may work on linux and OSX is to invoke your code from your project's root directory like so: ```LD_PRELOAD=/path/to/librocksdb.a cargo run``` + +### Running ###### Cargo.toml ```rust [dependencies]