From 3fb8297c8c2e528b07e370036b628f5673725d66 Mon Sep 17 00:00:00 2001
From: twmht <qrnnis2623891@gmail.com>
Date: Mon, 17 Apr 2017 00:57:09 +0800
Subject: [PATCH] update installation in document

---
 docs/installation.rst | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/docs/installation.rst b/docs/installation.rst
index e8b9daf..91daa54 100644
--- a/docs/installation.rst
+++ b/docs/installation.rst
@@ -11,12 +11,11 @@ For more details consider https://github.com/facebook/rocksdb/blob/master/INSTAL
 
 .. code-block:: bash
 
-    apt-get install build-essential
-    apt-get install libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev
+    apt-get install build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev
     git clone https://github.com/facebook/rocksdb.git
     cd rocksdb
-    make shared_lib
-
+    make build && cd build
+    cmake ..
 
 Systemwide rocksdb
 ^^^^^^^^^^^^^^^^^^
@@ -37,11 +36,10 @@ These varialbes are picked up by the compiler, linker and loader
 
 .. code-block:: bash
 
-    export CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}:`pwd`/include
+    export CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}:`pwd`/../include:`pwd`/../
     export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:`pwd`
     export LIBRARY_PATH=${LIBRARY_PATH}:`pwd`
 
-
 Building pyrocksdb
 ------------------
 
-- 
GitLab