Commit 09dc9335 authored by gejun's avatar gejun

update README again

Change-Id: I30be9f6acd6251942d3132a493d7a0e481049128
parent dc3eeed5
The opensource version of baidu-rpc The opensource version of baidu-rpc
# BUILD # BUILD
## Ubuntu ### Ubuntu
### install deps **install deps**
sudo apt-get install libgflags-dev libprotobuf-dev libprotoc-dev libleveldb-dev libsnappy-dev sudo apt-get install libgflags-dev libprotobuf-dev libprotoc-dev libleveldb-dev libsnappy-dev
### compile brpc **compile**
git clone this repo. cd into the repo and run: sh config_brpc.sh --incs=/usr/include --libs=/usr/lib git clone this repo. cd into the repo and run: sh config_brpc.sh --incs=/usr/include
### run echo example --libs=/usr/lib
- cd into example/echo_c++ **run echo example**
- make cd into example/echo_c++, make, run echo_server and echo_client
- run echo_server and echo_client **run examples with cpu/heap profilers**
### run examples enabling cpu/heap profilers: sudo apt-get install libgoogle-perftools-dev libunwind-dev liblzma-dev
- sudo apt-get install libgoogle-perftools-dev libunwind-dev liblzma-dev Rerun config_brpc.sh
- Rerun: sh config_brpc.sh --incs=/usr/include --libs=/usr/lib
- set LINK_PERFTOOLS to 1 in the Makefile
## Baidu-internal ### Baidu-internal
### setup workspace **setup directories**
- setup directories for baidu/opensource/baidu-rpc download deps: third-64/gflags@gflags_2-0-0-100_PD_BL third-64/protobuf@protobuf_2-4-1-1100_PD_BL
- download deps: third-64/gflags@gflags_2-0-0-100_PD_BL third-64/protobuf@protobuf_2-4-1-1100_PD_BL third-64/leveldb@leveldb_1-0-0-0_PD_BL third-64/leveldb@leveldb_1-0-0-0_PD_BL
### compile brpc **compile**
git clone this repo. cd into the repo and run: sh config_brpc.sh --incs=../../../third-64 --libs=../../../third-64 git clone this repo. cd into the repo and run: sh config_brpc.sh --incs=../../../third-64
### run examples enabling cpu/heap profilers: --libs=../../../third-64
- download deps: third-64/tcmalloc@tcmalloc_1-7-0-200_PD_BL **run examples with cpu/heap profilers**
- Rerun: sh config_brpc.sh --incs=../../../third-64 --libs=../../../third-64 download deps: third-64/tcmalloc@tcmalloc_1-7-0-200_PD_BL
- set LINK_PERFTOOLS to 1 in the Makefile Rerun config_brpc.sh
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