From 9f9f857381c5de51f1ee3056c38494380ecbf212 Mon Sep 17 00:00:00 2001 From: Ge Jun Date: Thu, 1 Aug 2019 14:43:49 +0800 Subject: [PATCH] Add -y to apt-get commands --- docs/cn/getting_started.md | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/docs/cn/getting_started.md b/docs/cn/getting_started.md index 66cdadd26..716a72019 100644 --- a/docs/cn/getting_started.md +++ b/docs/cn/getting_started.md @@ -18,29 +18,24 @@ brpc depends on following packages: ## Ubuntu/LinuxMint/WSL ### Prepare deps -Install common deps: -```shell -sudo apt-get install git g++ make libssl-dev -``` - -Install [gflags](https://github.com/gflags/gflags), [protobuf](https://github.com/google/protobuf), [leveldb](https://github.com/google/leveldb): +Install common deps, [gflags](https://github.com/gflags/gflags), [protobuf](https://github.com/google/protobuf), [leveldb](https://github.com/google/leveldb): ```shell -sudo apt-get install libgflags-dev libprotobuf-dev libprotoc-dev protobuf-compiler libleveldb-dev +sudo apt-get install -y git g++ make libssl-dev cmake libgflags-dev libprotobuf-dev libprotoc-dev protobuf-compiler libleveldb-dev ``` If you need to statically link leveldb: ```shell -sudo apt-get install libsnappy-dev +sudo apt-get install -y libsnappy-dev ``` If you need to enable cpu/heap profilers in examples: ```shell -sudo apt-get install libgoogle-perftools-dev +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 libgtest-dev && cd /usr/src/gtest && sudo cmake . && sudo make && sudo mv libgtest* /usr/lib/ && cd - +sudo apt-get install -y libgtest-dev && cd /usr/src/gtest && sudo cmake . && sudo make && sudo mv 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.