Helmut Kemper
Helmut Kemper

Reputation: 712

How to install RocksDB into ubuntu?

RocksDB is a key / value database created by facebook and works very well, but it lacks documentation on how to install the production version.

Upvotes: 8

Views: 20495

Answers (3)

Peter Ludemann
Peter Ludemann

Reputation: 1005

sudo apt-get install librocksdb-dev

Upvotes: 13

Furqan Siddiqui
Furqan Siddiqui

Reputation: 421

I was going through the same thing but I found answer, installation instructions are in fact there, just need to snoop around a little

https://github.com/facebook/rocksdb/blob/master/INSTALL.md

to wrap these instructions in few lines:

Dependencies:

sudo apt-get install libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev libzstd-dev

Installation:

git clone https://github.com/facebook/rocksdb.git
cd rocksdb/
make all

Upvotes: 4

Helmut Kemper
Helmut Kemper

Reputation: 712

The code below works fine on Ubuntu 16.04 and was placed here to help

git clone https://github.com/facebook/rocksdb.git
cd rocksdb

DEBUG_LEVEL=0 make shared_lib install-shared

export LD_LIBRARY_PATH=/usr/local/lib

Hope this helps.

Kemper

Upvotes: 15

Related Questions