|
36 | 36 | ``` |
37 | 37 | 4. [librocketmq](https://github.com/apache/rocketmq-client-cpp), choose one method below: |
38 | 38 | |
39 | | - - make and install the RocketMQ library manually from [rocketmq-client-cpp](https://github.com/apache/rocketmq-client-cpp) |
| 39 | + - build from source: [Build and Install](https://github.com/apache/rocketmq-client-cpp/tree/master#build-and-install) |
40 | 40 | |
41 | | - - quick install, please choose the suitable dynamic library version for your system. |
42 | | - ``` |
43 | | - mkdir rocketmqlib |
44 | | - cd rocketmqlib |
45 | | - wget https://opensource-rocketmq-client.oss-cn-hangzhou.aliyuncs.com/cpp-client/linux/1.2.2/RHEL7.X/rocketmq-client-cpp.tar.gz |
46 | | - tar -xzf rocketmq-client-cpp.tar.gz |
47 | | - cd rocketmq-client-cpp |
48 | | - sudo cp lib/librocketmq.so lib/librocketmq.a /usr/local/lib/ |
49 | | - mkdir -p /usr/local/include/rocketmq |
50 | | - sudo cp -r include/* /usr/local/include/rocketmq |
51 | | - ``` |
52 | | - |
| 41 | + - download specific release: [rocketmq-client-cpp](https://www.apache.org/dyn/closer.cgi?path=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 `/usr/local/lib/` directory and copy the head files under `include` path to `/usr/local/include/rocketmq/`. and please make sure your `/usr/local/lib/` directory is under the `LD_LIBRARY_PATH`. |
53 | 42 | |
54 | 43 | * Make and install module manually |
55 | 44 | 1. Using Dynamic RocketMQ and boost python libraries are recommended. |
|
90 | 79 | ``` |
91 | 80 | 4. [librocketmq](https://github.com/apache/rocketmq-client-cpp), choose one method below: |
92 | 81 | |
93 | | - - make and install the RocketMQ library manually from [rocketmq-client-cpp](https://github.com/apache/rocketmq-client-cpp) |
| 82 | + - build from source: [Build and Install](https://github.com/apache/rocketmq-client-cpp/tree/master#build-and-install) |
94 | 83 | |
95 | | - - quick install |
| 84 | + - quick install: there are no cpp binary release for macos, below script can only be used for dev env. |
96 | 85 | ``` |
97 | 86 | mkdir rocketmqlib |
98 | 87 | cd rocketmqlib |
99 | | - wget https://opensource-rocketmq-client.oss-cn-hangzhou.aliyuncs.com/cpp-client/mac/1.2.0/librocketmq.tar.gz |
| 88 | + wget https://opensource-rocketmq-client.oss-cn-hangzhou.aliyuncs.com/cpp-client/mac/1.2.4/librocketmq.tar.gz |
100 | 89 | tar -xzf librocketmq.tar.gz |
101 | 90 | cp librocketmq.dylib librocketmq.a /usr/local/lib/ |
102 | 91 | cp -r rocketmq /usr/local/include/ |
103 | 92 | ``` |
104 | 93 | |
105 | 94 | |
106 | 95 | * Make and install module manually |
107 | | - 1. Using Dynamic RocketMQ and boost python libraries are recommended. |
108 | | - ``` |
| 96 | + ``` |
109 | 97 | - mkdir build && cd build |
110 | 98 | - cmake ../ -DBoost_USE_STATIC_LIBS=OFF -DROCKETMQ_USE_STATIC_LIBS=OFF |
111 | 99 | - make |
112 | 100 | - make install |
113 | | - ``` |
114 | | - |
115 | | - 2. Also you can using static libraries. |
116 | | - ``` |
117 | | - - mkdir build & cd build |
118 | | - - cmake ../ -DBoost_USE_STATIC_LIBS=ON -DROCKETMQ_USE_STATIC_LIBS=ON |
119 | | - - make |
120 | | - - make install |
121 | | - ``` |
| 101 | + ``` |
122 | 102 | * Check verion |
123 | 103 | ``` |
124 | 104 | strings librocketmqclientpython.so |grep PYTHON_CLIENT_VERSION |
|
0 commit comments