Skip to content

Commit 08bc79c

Browse files
authored
doc(readme): use cpp 1.2.4 for quick install
doc(readme): use CPP 1.2.4 for quick install
1 parent e8e43cc commit 08bc79c

1 file changed

Lines changed: 7 additions & 27 deletions

File tree

doc/Introduction.md

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,9 @@
3636
```
3737
4. [librocketmq](https://github.com/apache/rocketmq-client-cpp), choose one method below:
3838
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)
4040
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`.
5342
5443
* Make and install module manually
5544
1. Using Dynamic RocketMQ and boost python libraries are recommended.
@@ -90,35 +79,26 @@
9079
```
9180
4. [librocketmq](https://github.com/apache/rocketmq-client-cpp), choose one method below:
9281
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)
9483
95-
- quick install
84+
- quick install: there are no cpp binary release for macos, below script can only be used for dev env.
9685
```
9786
mkdir rocketmqlib
9887
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
10089
tar -xzf librocketmq.tar.gz
10190
cp librocketmq.dylib librocketmq.a /usr/local/lib/
10291
cp -r rocketmq /usr/local/include/
10392
```
10493
10594
10695
* Make and install module manually
107-
1. Using Dynamic RocketMQ and boost python libraries are recommended.
108-
```
96+
```
10997
- mkdir build && cd build
11098
- cmake ../ -DBoost_USE_STATIC_LIBS=OFF -DROCKETMQ_USE_STATIC_LIBS=OFF
11199
- make
112100
- 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+
```
122102
* Check verion
123103
```
124104
strings librocketmqclientpython.so |grep PYTHON_CLIENT_VERSION

0 commit comments

Comments
 (0)