Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install RocksDB into ubuntu?

Tags:

ubuntu

rocksdb

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

like image 443
Helmut Kemper Avatar asked Dec 21 '17 16:12

Helmut Kemper


3 Answers

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

like image 190
Helmut Kemper Avatar answered Sep 22 '22 03:09

Helmut Kemper


sudo apt-get install librocksdb-dev
like image 28
Peter Ludemann Avatar answered Sep 21 '22 03:09

Peter Ludemann


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
like image 26
Furqan Siddiqui Avatar answered Sep 22 '22 03:09

Furqan Siddiqui