Skip to content

Commit fb3e778

Browse files
authored
Merge pull request #6318 from putcn/fix_6308
fix typo and path issue in build from source doc
2 parents e557611 + 6fb34e8 commit fb3e778

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

doc/getstarted/build_and_install/build_from_source_cn.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ PaddlePaddle主要使用 `CMake <https://cmake.org>`_ 以及GCC, G++作为编译
1919
git clone https://github.com/PaddlePaddle/Paddle.git
2020
cd Paddle
2121
# 如果使用Docker编译环境,执行下面的命令编译CPU-Only的二进制
22-
docker run -it -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_TESTING=OFF" paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x paddle/scripts/docker/build.sh
22+
docker run -it -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_TESTING=OFF" paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x /paddle/paddle/scripts/docker/build.sh
2323
# 如果不使用Docker编译环境,执行下面的命令
2424
mkdir build
2525
cd build
@@ -30,7 +30,7 @@ PaddlePaddle主要使用 `CMake <https://cmake.org>`_ 以及GCC, G++作为编译
3030

3131
.. code-block:: bash
3232
33-
pip install python/dist/*.whl
33+
pip install build/python/dist/*.whl
3434
3535
3636
.. _run_test:
@@ -45,7 +45,7 @@ PaddlePaddle主要使用 `CMake <https://cmake.org>`_ 以及GCC, G++作为编译
4545

4646
.. code-block:: bash
4747
48-
docker run -it -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_TESTING=ON" -e "RUN_TEST=ON" paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x paddle/scripts/docker/build.sh
48+
docker run -it -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_TESTING=ON" -e "RUN_TEST=ON" paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x /paddle/paddle/scripts/docker/build.sh
4949
5050
如果不使用Docker,可以执行ctest命令即可:
5151

doc/getstarted/build_and_install/build_from_source_en.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Then run:
2121
git clone https://github.com/PaddlePaddle/Paddle.git
2222
cd Paddle
2323
# run the following command to build a CPU-Only binaries if you are using docker
24-
docker run -it -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_TESTING=OFF" paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x paddle/scripts/docker/build.sh
24+
docker run -it -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_TESTING=OFF" paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x /paddle/paddle/scripts/docker/build.sh
2525
# else run these commands
2626
mkdir build
2727
cd build
@@ -34,7 +34,7 @@ machine or copy it to the target machine.
3434

3535
.. code-block:: bash
3636
37-
pip install python/dist/*.whl
37+
pip install build/python/dist/*.whl
3838
3939
4040
.. _run_test:
@@ -49,7 +49,7 @@ Set :code:`WITH_GPU=ON` Can also run tests on GPU.
4949

5050
.. code-block:: bash
5151
52-
docker run -it -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_TESTING=ON" -e "RUN_TEST=ON" paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x paddle/scripts/docker/build.sh
52+
docker run -it -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_TESTING=ON" -e "RUN_TEST=ON" paddlepaddle/paddle_manylinux_devel:cuda8.0_cudnn5 bash -x paddle/paddle/scripts/docker/build.sh
5353
5454
If you don't use Docker, just run ctest will start the tests:
5555

@@ -117,7 +117,7 @@ You can add :code:`-D` argument to pass such options, like:
117117
"WITH_PYTHON", "Build with integrated Python interpreter", "ON"
118118
"WITH_STYLE_CHECK", "Check code style when building", "ON"
119119
"WITH_TESTING", "Build unit tests", "ON"
120-
"WITH_DOC", "Build documentaions", "OFF"
120+
"WITH_DOC", "Build documentations", "OFF"
121121
"WITH_SWIG_PY", "Build Python SWIG interface for V2 API", "Auto"
122122
"WITH_GOLANG", "Build fault-tolerant parameter server written in go", "ON"
123123
"WITH_MKL", "Use MKL as BLAS library, else use OpenBLAS", "ON"

0 commit comments

Comments
 (0)