vongosling closed pull request #22: Update Introduction for macOS
URL: https://github.com/apache/rocketmq-client-python/pull/22
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/doc/Introduction.md b/doc/Introduction.md
index 628079e..e26239e 100644
--- a/doc/Introduction.md
+++ b/doc/Introduction.md
@@ -1,13 +1,13 @@
 ----------
 ## RocketMQ Client Python
 
-### 1. Python Version
-* python 2.7.x
+### 1. Python Runtime Version
+* python 2.7.x 
 
 
-### 2. Dependency
+### 2. Dependency of Python Client
 
-* [librocketmq](https://github.com/apache/rocketmq-client-cpp) 
+* CPP Core: [librocketmq](https://github.com/apache/rocketmq-client-cpp)       
 * python-devel 2.7.x
 * boost-python 1.58.0
       
@@ -38,17 +38,17 @@
       
        - make and install the RocketMQ library manually from 
[rocketmq-client-cpp](https://github.com/apache/rocketmq-client-cpp)
          
-       - quick install
+       - quick install, please choose the suitable dynamic library version for 
your system.
        ```
        mkdir rocketmqlib
        cd rocketmqlib
-       wget 
https://opensource-rocketmq-client.oss-cn-hangzhou.aliyuncs.com/cpp-client/linux/1.0.2/RHEL7.x/librocketmq.tar.gz
+       wget 
https://opensource-rocketmq-client.oss-cn-hangzhou.aliyuncs.com/cpp-client/linux/1.2.0/RHEL7.x/librocketmq.tar.gz
        tar -xzf librocketmq.tar.gz
        sudo cp librocketmq.so librocketmq.a /usr/local/lib/
        sudo cp -r rocketmq /usr/local/include/
        ```
    
-      
+     
 * Make and install module manually
    1. Using Dynamic RocketMQ and boost python libraries are recommended.
       ```
@@ -69,7 +69,64 @@
    ```
    strings librocketmqclientpython.so |grep PYTHON_CLIENT_VERSION
    ```
+#### macOS Mojave 10.14.2
+* Install compile tools:
+    ```
+    - brew install make
+    - brew install cmake
+    - sbrew install gcc-c++
+    ```
+* Install dependency:
+ 
+    1. python-devel
+       ```
+       brew install python-devel
+       ```
+    
+    2. zlib-devel
+       ```
+       brew install zlib-devel
+       ```
+    3. boost-python
+       ```
+       sh install_boostpython.sh
+       ```
+    4. [librocketmq](https://github.com/apache/rocketmq-client-cpp), choose 
one method below:
+      
+       - make and install the RocketMQ library manually from 
[rocketmq-client-cpp](https://github.com/apache/rocketmq-client-cpp)
+         
+       - quick install
+       ```
+       mkdir rocketmqlib
+       cd rocketmqlib
+       wget 
https://opensource-rocketmq-client.oss-cn-hangzhou.aliyuncs.com/cpp-client/mac/1.2.0/librocketmq.tar.gz
+       tar -xzf librocketmq.tar.gz
+       cp librocketmq.dylib librocketmq.a /usr/local/lib/
+       cp -r rocketmq /usr/local/include/
+       ```
    
+     
+* Make and install module manually
+   1. Using Dynamic RocketMQ and boost python libraries are recommended.
+      ```
+      - mkdir build && cd build
+      - cmake ../ -DBoost_USE_STATIC_LIBS=OFF -DROCKETMQ_USE_STATIC_LIBS=OFF
+      - make
+      - make install
+      ```
+      
+   2. Also you can using static libraries.
+      ```
+         - mkdir build & cd build
+         - cmake ../ -DBoost_USE_STATIC_LIBS=ON -DROCKETMQ_USE_STATIC_LIBS=ON
+         - make
+         - make install
+      ```
+* Check verion
+   ```
+   strings librocketmqclientpython.so |grep PYTHON_CLIENT_VERSION
+   ```
+    
 ----------
 ## How to use
 - set LD_LIBRARY_PATH


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to