Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Python Rocksdb
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
Python Rocksdb
Commits
608e5d0b
Commit
608e5d0b
authored
9 years ago
by
hofmockel
Browse files
Options
Downloads
Patches
Plain Diff
Update the installation page by mentioning a 'system wide' rocksdb installation.
parent
7a6fd6ec
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/installation.rst
+38
-18
38 additions, 18 deletions
docs/installation.rst
with
38 additions
and
18 deletions
docs/installation.rst
+
38
−
18
View file @
608e5d0b
...
@@ -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 a
n
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment