Unverified Commit 9f9f8573 authored by Ge Jun's avatar Ge Jun Committed by GitHub

Add -y to apt-get commands

parent 9ce4f9c6
...@@ -18,29 +18,24 @@ brpc depends on following packages: ...@@ -18,29 +18,24 @@ brpc depends on following packages:
## Ubuntu/LinuxMint/WSL ## Ubuntu/LinuxMint/WSL
### Prepare deps ### Prepare deps
Install common deps: 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 git g++ make libssl-dev
```
Install [gflags](https://github.com/gflags/gflags), [protobuf](https://github.com/google/protobuf), [leveldb](https://github.com/google/leveldb):
```shell ```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: If you need to statically link leveldb:
```shell ```shell
sudo apt-get install libsnappy-dev sudo apt-get install -y libsnappy-dev
``` ```
If you need to enable cpu/heap profilers in examples: If you need to enable cpu/heap profilers in examples:
```shell ```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): If you need to run tests, install and compile libgtest-dev (which is not compiled yet):
```shell ```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. The directory of gtest source code may be changed, try `/usr/src/googletest/googletest` if `/usr/src/gtest` is not there.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment