Browse Source

Update getting_started.md

jamesge 3 years ago
parent
commit
2aea691078
1 changed files with 3 additions and 2 deletions
  1. 3 2
      docs/cn/getting_started.md

+ 3 - 2
docs/cn/getting_started.md

@@ -265,10 +265,11 @@ If you need to enable cpu/heap profilers in examples:
 brew install gperftools
 ```
 
-If you need to run tests, install and compile googletest (which is not compiled yet):
+If you need to run tests, download and compile googletest (which is not compiled yet):
 ```shell
-git clone https://github.com/google/googletest && cd googletest/googletest && mkdir bld && cd bld && cmake -DCMAKE_CXX_FLAGS="-std=c++11" .. && make && sudo mv libgtest* /usr/lib/ && cd -
+git clone https://github.com/google/googletest -b release-1.10.0 && cd googletest/googletest && mkdir bld && cd bld && cmake -DCMAKE_CXX_FLAGS="-std=c++11" .. && make
 ```
+After the compilation, copy include/ and lib/ into /usr/local/include and /usr/local/lib respectively to expose gtest to all apps
 
 ### Compile brpc with config_brpc.sh
 git clone brpc, cd into the repo and run