提交 bcbc4805 编写于 作者: M MRXLT 提交者: GitHub

Merge pull request #550 from MRXLT/0.2.2-doc-fix

fix doc && centos6 dockerfile
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
- Golang: 1.9.2 and later - Golang: 1.9.2 and later
- Git:2.17.1 and later - Git:2.17.1 and later
- CMake:3.2.2 and later - CMake:3.2.2 and later
- Python:2.7.2 and later - Python:2.7.2 and later / 3.6 and later
It is recommended to use Docker for compilation. We have prepared the Paddle Serving compilation environment for you: It is recommended to use Docker for compilation. We have prepared the Paddle Serving compilation environment for you:
...@@ -54,6 +54,8 @@ make -j10 ...@@ -54,6 +54,8 @@ make -j10
execute `make install` to put targets under directory `./output` execute `make install` to put targets under directory `./output`
**Attention:**After the compilation is successful, the serving binary file will be generated in the ./core/general-server directory. Before starting the server, export SERVING_BIN = $ {path / to / serving / bin} is required to allow the server to use the compiled serving binary file.
## Compile Client ## Compile Client
``` shell ``` shell
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
- Golang: 1.9.2及以上 - Golang: 1.9.2及以上
- Git:2.17.1及以上 - Git:2.17.1及以上
- CMake:3.2.2及以上 - CMake:3.2.2及以上
- Python:2.7.2及以上 - Python:2.7.2及以上 / 3.6及以上
推荐使用Docker编译,我们已经为您准备好了Paddle Serving编译环境: 推荐使用Docker编译,我们已经为您准备好了Paddle Serving编译环境:
...@@ -54,6 +54,8 @@ make -j10 ...@@ -54,6 +54,8 @@ make -j10
执行`make install`可以把目标产出放在`./output`目录下。 执行`make install`可以把目标产出放在`./output`目录下。
**注意:** 编译成功后,在./core/general-server目录下会产出serving二进制文件。启动server前需要export SERVING_BIN=${path/to/serving/bin} 来让server端使用编译出的serving二进制文件。
## 编译Client部分 ## 编译Client部分
``` shell ``` shell
......
...@@ -43,7 +43,8 @@ if (APP) ...@@ -43,7 +43,8 @@ if (APP)
add_custom_command( add_custom_command(
OUTPUT ${PADDLE_SERVING_BINARY_DIR}/.timestamp OUTPUT ${PADDLE_SERVING_BINARY_DIR}/.timestamp
COMMAND cp -r ${CMAKE_CURRENT_SOURCE_DIR}/paddle_serving_app/ ${PADDLE_SERVING_BINARY_DIR}/python/ COMMAND cp -r ${CMAKE_CURRENT_SOURCE_DIR}/paddle_serving_app/ ${PADDLE_SERVING_BINARY_DIR}/python/
COMMAND env ${py_env} ${PYTHON_EXECUTABLE} setup.py bdist_wheel) COMMAND env ${py_env} ${PYTHON_EXECUTABLE} setup.py bdist_wheel
DEPENDS ${SERVING_APP_CORE} general_model_config_py_proto ${PY_FILES})
add_custom_target(paddle_python ALL DEPENDS ${PADDLE_SERVING_BINARY_DIR}/.timestamp) add_custom_target(paddle_python ALL DEPENDS ${PADDLE_SERVING_BINARY_DIR}/.timestamp)
endif() endif()
......
...@@ -21,7 +21,7 @@ RUN yum -y install wget && \ ...@@ -21,7 +21,7 @@ RUN yum -y install wget && \
wget https://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz && \ wget https://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz && \
tar -zxf Python-2.7.5.tgz && \ tar -zxf Python-2.7.5.tgz && \
cd Python-2.7.5 && \ cd Python-2.7.5 && \
./configure --prefix=/usr/local/python2.7 --enable-shared && \ ./configure --prefix=/usr/local/python2.7 --enable-shared --enable-unicode=ucs4 && \
make all && make install && \ make all && make install && \
make clean && \ make clean && \
echo 'export PATH=/usr/local/python2.7/bin:$PATH' >> /root/.bashrc && \ echo 'export PATH=/usr/local/python2.7/bin:$PATH' >> /root/.bashrc && \
......
...@@ -21,7 +21,7 @@ RUN yum -y install wget && \ ...@@ -21,7 +21,7 @@ RUN yum -y install wget && \
wget https://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz && \ wget https://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz && \
tar -zxf Python-2.7.5.tgz && \ tar -zxf Python-2.7.5.tgz && \
cd Python-2.7.5 && \ cd Python-2.7.5 && \
./configure --prefix=/usr/local/python2.7 --enable-shared && \ ./configure --prefix=/usr/local/python2.7 --enable-shared --enable-unicode=ucs4 && \
make all && make install && \ make all && make install && \
make clean && \ make clean && \
echo 'export PATH=/usr/local/python2.7/bin:$PATH' >> /root/.bashrc && \ echo 'export PATH=/usr/local/python2.7/bin:$PATH' >> /root/.bashrc && \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册