You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by di...@apache.org on 2020/02/14 10:18:30 UTC

[rocketmq-client-python] branch master updated: feat(doc): update cpp library install methods. (#84)

This is an automated email from the ASF dual-hosted git repository.

dinglei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-client-python.git


The following commit(s) were added to refs/heads/master by this push:
     new 44824e4  feat(doc): update cpp library install methods. (#84)
44824e4 is described below

commit 44824e4c20a04dbe0ab18adb499998c5c9156b74
Author: dinglei <li...@163.com>
AuthorDate: Fri Feb 14 18:18:19 2020 +0800

    feat(doc): update cpp library install methods. (#84)
    
    * feat(doc): update cpp library install methods.
    
    * feat(doc): update cpp library install methods.
---
 README.md | 41 ++++++++++++++++++++++++++---------------
 1 file changed, 26 insertions(+), 15 deletions(-)

diff --git a/README.md b/README.md
index 835847e..f59d545 100644
--- a/README.md
+++ b/README.md
@@ -16,21 +16,32 @@ RocketMQ Python client, based on [rocketmq-client-cpp](https://github.com/apache
 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