Skip to content
Snippets Groups Projects
Commit 608e5d0b authored by hofmockel's avatar hofmockel
Browse files

Update the installation page by mentioning a 'system wide' rocksdb installation.

parent 7a6fd6ec
No related branches found
No related tags found
No related merge requests found
...@@ -6,30 +6,50 @@ Installing ...@@ -6,30 +6,50 @@ Installing
Building rocksdb Building rocksdb
---------------- ----------------
Briefly describes how to build rocksdb under a ordinary debian/ubuntu. Briefly describes how to build rocksdb under an ordinary debian/ubuntu.
For more details consider https://github.com/facebook/rocksdb/blob/master/INSTALL.md:: For more details consider https://github.com/facebook/rocksdb/blob/master/INSTALL.md
$ apt-get install build-essential .. code-block:: bash
$ apt-get install libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev
$ git clone https://github.com/facebook/rocksdb.git apt-get install build-essential
$ cd rocksdb apt-get install libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev
$ make shared_lib git clone https://github.com/facebook/rocksdb.git
cd rocksdb
make shared_lib
Systemwide rocksdb
^^^^^^^^^^^^^^^^^^
The following command installs the shared library in ``/usr/lib/`` and the
header files in ``/usr/include/rocksdb/``::
make install-shared INSTALL_PATH=/usr
To uninstall use::
make uninstall INSTALL_PATH=/usr
Local rocksdb
^^^^^^^^^^^^^
If you don't like the system wide installation, or you don't have the
permissions, it is possible to set the following environment variables.
These varialbes are picked up by the compiler, linker and loader
.. code-block:: bash
If you do not want to call ``make install`` export the following enviroment export CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}:`pwd`/include
variables:: export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:`pwd`
export LIBRARY_PATH=${LIBRARY_PATH}:`pwd`
$ 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 Building pyrocksdb
------------------ ------------------
.. code-block:: bash .. code-block:: bash
$ apt-get install python-virtualenv python-dev apt-get install python-virtualenv python-dev
$ virtualenv pyrocks_test virtualenv pyrocks_test
$ cd pyrocks_test cd pyrocks_test
$ . bin/active . bin/active
$ pip install "Cython>=0.20" pip install "Cython>=0.20"
$ pip install git+git://github.com/stephan-hof/pyrocksdb.git pip install git+git://github.com/stephan-hof/pyrocksdb.git
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment