File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22## RocketMQ Client Python
33
44### 1. Python Version
5- * Python 2.7.x
5+ * python 2.7.x
66
77
88### 2. Dependency
2121 ```
2222* Install dependency:
2323
24- - python-devel
25- ```
26- sudo yum install python-devel
27- ```
28- - python-devel
29- ```
30- sudo yum install zlib-devel
31- ```
32- - boost-python
33- ```
34- sudo sh install_boostpython.sh
35- sudo yum install boost-python-devel
36- ```
37- - [librocketmq](https://github.com/apache/rocketmq-client-cpp), choose one method below:
24+ 1. python-devel
25+ ```
26+ sudo yum install python-devel
27+ ```
28+
29+ 2. zlib-devel
30+ ```
31+ sudo yum install zlib-devel
32+ ```
33+ 3. boost-python
34+ ```
35+ sudo sh install_boostpython.sh
36+ ```
37+ 4. [librocketmq](https://github.com/apache/rocketmq-client-cpp), choose one method below:
3838
39- - make and install the RocketMQ library manually from [here ](https://github.com/apache/rocketmq-client-cpp)
39+ - make and install the RocketMQ library manually from [rocketmq-client-cpp ](https://github.com/apache/rocketmq-client-cpp)
4040
4141 - quick install
4242 ```
Original file line number Diff line number Diff line change @@ -41,13 +41,17 @@ if [ $? -ne 0 ];then
4141 exit 1
4242fi
4343echo " Install boost static library...."
44- sudo ./bjam cflags=" -fPIC" cxxflags=" -fPIC -Wno-unused-local-typedefs -Wno-strict-aliasing" link=static \
45- --with-python \
44+ sudo ./b2 cflags=" -fPIC" cxxflags=" -fPIC -Wno-unused-local-typedefs -Wno-strict-aliasing" link=static \
45+ runtime-link=static --with-python \
4646 -a install
4747if [ $? -ne 0 ]; then
4848 exit 1
4949fi
5050echo " Install boost dynamic library....."
51- sudo ./bjam cflags=" -fPIC" cxxflags=" -fPIC -Wno-unused-local-typedefs -Wno-strict-aliasing" link=shared \
52- --with-python
53- -a install
51+ sudo ./b2 cflags=" -fPIC" cxxflags=" -fPIC -Wno-unused-local-typedefs -Wno-strict-aliasing" link=shared \
52+ runtime-link=shared --with-python \
53+ -a install
54+ if [ $? -ne 0 ]; then
55+ exit 1
56+ fi
57+ echo " Finish build boost library."
You can’t perform that action at this time.
0 commit comments