|
3 | 3 | ### Linux platform
|
4 | 4 | #### 1. Dependency Installation
|
5 | 5 | * Install libevent 2.0.22 dependency
|
6 |
| - - Download [libevent 2.0.22](https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz) |
7 |
| - - Build and install libevent |
8 |
| - - ./configure |
9 |
| - - make |
10 |
| - - make install |
| 6 | + - Download [libevent 2.0.22](https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz) |
| 7 | + - Build and install libevent |
| 8 | + - ./configure |
| 9 | + - make |
| 10 | + - make install |
11 | 11 | * Install JsonCPP 0.7.0 dependency
|
12 |
| - - Download [jsoncpp 0.7.0](https://github.com/open-source-parsers/jsoncpp/archive/0.10.6.zip) |
13 |
| - - Build and install jsoncpp |
14 |
| - - cmake . |
15 |
| - - make |
16 |
| - - make install |
| 12 | + - Download [jsoncpp 0.7.0](https://github.com/open-source-parsers/jsoncpp/archive/0.10.6.zip) |
| 13 | + - Build and install jsoncpp |
| 14 | + - cmake . |
| 15 | + - make |
| 16 | + - make install |
17 | 17 | * Install boost 1.56.0 dependency
|
18 |
| - - Download [boost 1.56.0](http://www.boost.org/users/history/version_1_56_0.html) |
19 |
| - - Build and install boost |
20 |
| - - cd path/to/boost_1_56_0 |
21 |
| - - config boost:./bootstrap.sh |
22 |
| - - build boost: |
23 |
| - - build static boost lib: ./b2 link=static runtime-link=static |
24 |
| - - build dynamic boost lib: ./b2 link=shared runtime-link=shared |
25 |
| - - install boost: ./b2 install |
| 18 | + - Download [boost 1.56.0](http://www.boost.org/users/history/version_1_56_0.html) |
| 19 | + - Build and install boost |
| 20 | + - cd path/to/boost_1_56_0 |
| 21 | + - config boost:./bootstrap.sh |
| 22 | + - build boost: |
| 23 | + - build static boost lib: ./b2 link=static runtime-link=static |
| 24 | + - build dynamic boost lib: ./b2 link=shared runtime-link=shared |
| 25 | + - install boost: ./b2 install |
26 | 26 |
|
27 | 27 | #### 2. Make and Install
|
28 |
| -* Default install path: |
29 |
| - - header files: /usr/local/include |
30 |
| - - lib: /usr/local/lib |
| 28 | +* Default install path: |
| 29 | + - header files: /usr/local/include |
| 30 | + - lib: /usr/local/lib |
31 | 31 | * Make and install using cmake
|
32 |
| - - cmake will auto find_package, if failes, change BOOST_INCLUDEDIR/LIBEVENT_INCLUDE_DIR/JSONCPP_INCLUDE_DIR in CMakeList.txt, according to its real install path |
33 |
| - - make |
34 |
| - - make install |
| 32 | + - cmake will auto find_package, if failes, change BOOST_INCLUDEDIR/LIBEVENT_INCLUDE_DIR/JSONCPP_INCLUDE_DIR in CMakeList.txt, according to its real install path |
| 33 | + - make |
| 34 | + - make install |
35 | 35 |
|
36 | 36 | ### Check verion
|
37 | 37 | - strings librocketmq.so |grep VERSION
|
38 | 38 |
|
39 | 39 | - log path:$HOME/logs/metaq-client4cpp
|
40 | 40 |
|
41 | 41 | - Before Run:
|
42 |
| - - export LD_LIBRARY_PATH=/xxx/rocketmq-client4cpp/bin/:$LD_LIBRARY_PATH;LD_LIBRARY_PATH=/A/lib:$LD_LIBRARY_PATH |
| 42 | + - export LD_LIBRARY_PATH=/xxx/rocketmq-cpp/bin/:$LD_LIBRARY_PATH;LD_LIBRARY_PATH=/A/lib:$LD_LIBRARY_PATH |
43 | 43 |
|
44 | 44 | ## Description for Important Parameters
|
45 | 45 | - -n : nameserver addr, if not set -n and -i ,no nameSrv will be got
|
|
87 | 87 | - g_consumer.registerMessageListener(listener);
|
88 | 88 | - g_consumer.start();
|
89 | 89 | - g_consumer.shutdown();
|
90 |
| - |
91 |
| - ## Acknowledgment - Alibaba |
| 90 | + |
| 91 | +## Acknowledgment - Alibaba Group. |
92 | 92 |
|
93 | 93 |
|
94 | 94 |
|
0 commit comments