This is an automated email from the ASF dual-hosted git repository.

wwbmmm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new 2ec8f469 fix gtest build cmd in doc (#2154)
2ec8f469 is described below

commit 2ec8f469f82a30c0abfb534f98b7fce0f0f77455
Author: zuyu <z...@users.noreply.github.com>
AuthorDate: Tue Mar 7 02:32:27 2023 -0800

    fix gtest build cmd in doc (#2154)
---
 docs/cn/getting_started.md | 2 +-
 docs/en/getting_started.md | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/cn/getting_started.md b/docs/cn/getting_started.md
index c59498a7..942fe4bd 100644
--- a/docs/cn/getting_started.md
+++ b/docs/cn/getting_started.md
@@ -38,7 +38,7 @@ sudo apt-get install -y libgoogle-perftools-dev
 
 如果你要运行测试,那么要安装并编译libgtest-dev(它没有被默认编译):
 ```shell
-sudo apt-get install -y cmake libgtest-dev && cd /usr/src/gtest && sudo cmake 
. && sudo make && sudo mv libgtest* /usr/lib/ && cd -
+sudo apt-get install -y cmake libgtest-dev && cd /usr/src/gtest && sudo cmake 
. && sudo make && sudo mv lib/libgtest* /usr/lib/ && cd -
 ```
 gtest源码目录可能变动,如果`/usr/src/gtest`不存在,请尝试`/usr/src/googletest/googletest`。
 
diff --git a/docs/en/getting_started.md b/docs/en/getting_started.md
index ba494f3a..547a0104 100644
--- a/docs/en/getting_started.md
+++ b/docs/en/getting_started.md
@@ -38,7 +38,7 @@ sudo apt-get install -y libgoogle-perftools-dev
 
 If you need to run tests, install and compile libgtest-dev (which is not 
compiled yet):
 ```shell
-sudo apt-get install -y cmake libgtest-dev && cd /usr/src/gtest && sudo cmake 
. && sudo make && sudo mv libgtest* /usr/lib/ && cd -
+sudo apt-get install -y cmake libgtest-dev && cd /usr/src/gtest && sudo cmake 
. && sudo make && sudo mv lib/libgtest* /usr/lib/ && cd -
 ```
 The directory of gtest source code may be changed, try 
`/usr/src/googletest/googletest` if `/usr/src/gtest` is not there.
 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to