Skip to content

Commit ee3dc07

Browse files
committed
Update boost python build script
1 parent cace98f commit ee3dc07

2 files changed

Lines changed: 25 additions & 21 deletions

File tree

doc/Introduction.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## RocketMQ Client Python
33

44
### 1. Python Version
5-
* Python 2.7.x
5+
* python 2.7.x
66

77

88
### 2. Dependency
@@ -21,22 +21,22 @@
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
```

install_boostpython.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,17 @@ if [ $? -ne 0 ];then
4141
exit 1
4242
fi
4343
echo "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
4747
if [ $? -ne 0 ];then
4848
exit 1
4949
fi
5050
echo "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."

0 commit comments

Comments
 (0)