Skip to content

Commit

Permalink
Add section for Fedora in getting_started.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gejun committed Sep 15, 2017
1 parent 43dfa79 commit b1b6667
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions docs/cn/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ machine running the code.

## Ubuntu/LinuxMint/WSL
### compile
1. install common deps: git g++ make libssl-dev
2. install gflags protobuf leveldb: libgflags-dev libprotobuf-dev libprotoc-dev protobuf-compiler libleveldb-dev. If you need to statically link leveldb, install libsnappy-dev as well.
1. install common deps: `git g++ make libssl-dev`
2. install gflags, protobuf, leveldb, including: `libgflags-dev libprotobuf-dev libprotoc-dev protobuf-compiler libleveldb-dev`. If you need to statically link leveldb, install `libsnappy-dev` as well.
3. git clone this repo. cd into the repo and run
```
$ sh config_brpc.sh --headers=/usr/include --libs=/usr/lib
$ make
```
4. make

### run example
```
$ cd example/echo_c++
$ make
$ ./echo_server &
$ ./echo_client
```
Examples link brpc statically, if you need to link libbrpc.so, `make clean` and `LINK_SO=1 make`

### run examples with cpu/heap profilers
Install libgoogle-perftools-dev and re-run config_brpc.sh before compiling
Install `libgoogle-perftools-dev` and re-run config_brpc.sh before compiling

### compile tests
Install gmock and gtest, use the gtest embedded in gmock and don't install libgtest-dev
Expand All @@ -36,6 +36,31 @@ $ sudo mv gtest/include/gtest /usr/include/
```
Rerun config_brpc.sh and run make in test/

## Fedora/centos

### compile

1. install common deps: `git g++ make openssl-devel`
2. install gflags, protobuf, leveldb, including: `gflags-devel protobuf-devel protobuf-compiler leveldb-devel`.
3. git clone this repo. cd into the repo and run

```
$ sh config_brpc.sh --headers=/usr/include --libs=/usr/lib64
$ make
```
### run example

```
$ cd example/echo_c++
$ make
$ ./echo_server &
$ ./echo_client
```
Examples link brpc statically, if you need to link libbrpc.so, `make clean` and `LINK_SO=1 make`
### run examples with cpu/heap profilers

Install `gperftools-devel` and re-run config_brpc.sh before compiling

# Supported deps

## GCC: 4.8-7.1
Expand Down

0 comments on commit b1b6667

Please sign in to comment.