Merge pull request #28 from abhiramr/master

Docs: Exporting CPLUS_INCLUDE_PATH, LD_LIBRARY_PATH and LIBRARY_PATH
This commit is contained in:
Ming-Hsuan-Tu 2018-09-22 15:12:07 +08:00 committed by GitHub
commit 98910c2dce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,17 +17,17 @@ Quick install for debian/ubuntu like linux distributions.
.. code-block:: bash .. code-block:: bash
$ apt-get install build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev $ apt-get install build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev
$ git clone https://github.com/facebook/rocksdb.git $ git clone https://github.com/facebook/rocksdb.git
$ cd rocksdb $ cd rocksdb
$ mkdir build && cd build $ mkdir build && cd build
$ cmake .. $ cmake ..
$ make $ make
$ export CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}:`pwd`/../include $ cd ..
$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:`pwd` $ export CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}${CPLUS_INCLUDE_PATH:+:}`pwd`/include/
$ export LIBRARY_PATH=${LIBRARY_PATH}:`pwd` $ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}${LD_LIBRARY_PATH:+:}`pwd`/build/
$ export LIBRARY_PATH=${LIBRARY_PATH}${LIBRARY_PATH:+:}`pwd`/build/
$ cd ../
$ 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