Skip to content

Commit

Permalink
Update getting_started.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesge authored Nov 25, 2020
1 parent a624f99 commit 2aea691
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/cn/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2aea691

Please sign in to comment.