feat(doc): update cpp library install methods. (#84)
* feat(doc): update cpp library install methods.
* feat(doc): update cpp library install methods.
diff --git a/README.md b/README.md
index 835847e..f59d545 100644
--- a/README.md
+++ b/README.md
@@ -16,21 +16,32 @@
rocketmq-client-python is a lightweight wrapper around [rocketmq-client-cpp](https://github.com/apache/rocketmq-client-cpp), so you need install
`librocketmq` first.
-#### include file
-```bash
-git clone https://github.com/apache/rocketmq-client-cpp
-
-# By default, CFLAGS contains `/usr/local/include`
-sudo mkdir -p /usr/local/include/rocketmq/
-sudo cp rocketmq-client-cpp/include/* /usr/local/include/rocketmq
-```
-
-#### binary library
-your could download directly or build manually:
-
-- download specific release: [rocketmq-client-cpp](https://archive.apache.org/dist/rocketmq/rocketmq-client-cpp/1.2.4/rocketmq-client-cpp-1.2.4-bin-release.tar.gz)
- and unzip the package, please choose the right version according to your OS and unzip it, then copy the library files to to your `LD_LIBRARY_PATH` directory(as default, `/usr/local/lib/` works finely).
-- build from source: [Build and Install](https://github.com/apache/rocketmq-client-cpp/tree/master#build-and-install)
+#### Download by binary release.
+download specific release according you OS: [rocketmq-client-cpp-2.0.0](https://github.com/apache/rocketmq-client-cpp/releases/tag/2.0.0)
+- centos
+
+ take centos7 as example, you can install the library in centos6 by the same method.
+ ```bash
+ wget https://github.com/apache/rocketmq-client-cpp/releases/download/2.0.0/rocketmq-client-cpp-2.0.0-centos7.x86_64.rpm
+ sudo rpm -ivh rocketmq-client-cpp-2.0.0-centos7.x86_64.rpm
+ ```
+- debian
+ ```bash
+ wget https://github.com/apache/rocketmq-client-cpp/releases/download/2.0.0/rocketmq-client-cpp-2.0.0.amd64.deb
+ sudo dpkg -i rocketmq-client-cpp-2.0.0.amd64.deb
+ ```
+- macOS
+ ```bash
+ wget https://github.com/apache/rocketmq-client-cpp/releases/download/2.0.0/rocketmq-client-cpp-2.0.0-bin-release.darwin.tar.gz
+ tar -xzf rocketmq-client-cpp-2.0.0-bin-release.darwin.tar.gz
+ cd rocketmq-client-cpp
+ mkdir /usr/local/include/rocketmq
+ cp include/* /usr/local/include/rocketmq
+ cp lib/* /usr/local/lib
+ install_name_tool -id "@rpath/librocketmq.dylib" /usr/local/lib/librocketmq.dylib
+ ```
+#### Build from source
+you can also build it manually from source according to [Build and Install](https://github.com/apache/rocketmq-client-cpp/tree/master#build-and-install)
## Installation