From 453ccf22df615dcc3aae587d07691eb80f5231e0 Mon Sep 17 00:00:00 2001 From: Dong Daxiang <35550832+guru4elephant@users.noreply.github.com> Date: Tue, 10 Mar 2020 13:11:26 +0800 Subject: [PATCH] Update COMPILE.md --- doc/COMPILE.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/COMPILE.md b/doc/COMPILE.md index 4ddbf701..ef080baa 100644 --- a/doc/COMPILE.md +++ b/doc/COMPILE.md @@ -1,5 +1,13 @@ # 如何编译PaddleServing +### 编译环境设置 +os: CentOS 6u3 +gcc: 4.8.2及以上 +go: 1.9.2及以上 +git:2.17.1及以上 +cmake:3.2.2及以上 +python:2.7.2及以上 + ### 获取代码 ``` python @@ -15,6 +23,12 @@ cmake -DPYTHON_INCLUDE_DIR=$PYTHONROOT/include/python2.7/ -DPYTHON_LIBRARIES=$PY make -j10 ``` +#### PYTHONROOT设置 +``` shell +# 例如python的路径为/usr/bin/python,可以设置PYTHONROOT +export PYTHONROOT=/usr/ +``` + #### 集成GPU版本Paddle Inference Library ``` shell cmake -DPYTHON_INCLUDE_DIR=$PYTHONROOT/include/python2.7/ -DPYTHON_LIBRARIES=$PYTHONROOT/lib/libpython2.7.so -DPYTHON_EXECUTABLE=/home/users/dongdaxiang/software/baidu/third-party/python/bin/python -DCLIENT_ONLY=ON -DWITH_GPU=ON .. -- GitLab