2014-01-13 19:52:22 +01:00
|
|
|
Installing
|
|
|
|
**********
|
|
|
|
.. highlight:: bash
|
|
|
|
|
|
|
|
|
|
|
|
Building rocksdb
|
|
|
|
----------------
|
|
|
|
|
|
|
|
Briefly describes how to build rocksdb under a ordinary debian/ubuntu.
|
|
|
|
For more details consider https://github.com/facebook/rocksdb/blob/master/INSTALL.md::
|
|
|
|
|
|
|
|
$ apt-get install build-essential
|
|
|
|
$ apt-get install libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev
|
|
|
|
$ git clone https://github.com/facebook/rocksdb.git
|
2014-04-27 16:40:32 +02:00
|
|
|
$ git checkout 2.8.fb
|
2014-01-13 19:52:22 +01:00
|
|
|
$ cd rocksdb
|
2014-04-27 16:40:32 +02:00
|
|
|
$ make shared_lib
|
2014-01-13 19:52:22 +01:00
|
|
|
|
|
|
|
If you do not want to call ``make install`` export the following enviroment
|
|
|
|
variables::
|
|
|
|
|
|
|
|
$ export CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}:`pwd`/include
|
|
|
|
$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:`pwd`
|
|
|
|
$ export LIBRARY_PATH=${LIBRARY_PATH}:`pwd`
|
|
|
|
|
|
|
|
Building pyrocksdb
|
|
|
|
------------------
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
$ apt-get install python-virtualenv python-dev
|
|
|
|
$ virtualenv pyrocks_test
|
|
|
|
$ cd pyrocks_test
|
|
|
|
$ . bin/active
|
2014-01-23 08:06:14 +01:00
|
|
|
$ pip install "Cython>=0.20"
|
2014-04-01 21:24:18 +02:00
|
|
|
$ pip install git+git://github.com/stephan-hof/pyrocksdb.git
|