Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
ad9c88ef
Commit
ad9c88ef
authored
Jul 28, 2017
by
gejun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update README
Change-Id: Id94282dc33149d121bc055c6a3002420e7db2515
parent
050e8153
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
20 deletions
+21
-20
README
README
+21
-20
No files found.
README
View file @
ad9c88ef
The opensource version of baidu-rpc
BUILD
# BUILD
## Ubuntu
- install deps: sudo apt-get install libgflags-dev libprotobuf-dev libprotoc-dev libleveldb-dev libsnappy-dev
- git clone this repo.
- cd into the repo and run: sh config_brpc.sh --incs=/usr/include --libs=/usr/lib
Run echo example:
- cd into example/echo_c++
- make
- Run echo_server and echo_client
To run examples enabling cpu/heap profilers:
- sudo apt-get install libgoogle-perftools-dev libunwind-dev liblzma-dev
- Rerun: sh config_brpc.sh --incs=/usr/include --libs=/usr/lib
- set LINK_PERFTOOLS to 1 in the Makefile
[ubuntu]
Must: sudo apt-get install libgflags-dev libprotobuf-dev libprotoc-dev libleveldb-dev libsnappy-dev
sh config_brpc.sh --incs=/usr/include --libs=/usr/lib
Enable cpu/heap profiler in some examples (not working yet)
sudo apt-get install libgoogle-perftools-dev libunwind-dev liblzma-dev
Rerun config_brpc.sh
set LINK_PERFTOOLS to 1 in the Makefile
[baidu internal]
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
sh config_brpc.sh --incs=../../../third-64 --libs=../../../third-64
Enable cpu/heap profiler in some examples
Deps: third-64/tcmalloc@tcmalloc_1-7-0-200_PD_BL
Rerun config_brpc.sh
set LINK_PERFTOOLS to 1 in the Makefile
## Baidu-internal
- 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 third-64/leveldb@leveldb_1-0-0-0_PD_BL
- cd into the repo and run: sh config_brpc.sh --incs=../../../third-64 --libs=../../../third-64
To run examples enabling cpu/heap profilers:
- download deps: third-64/tcmalloc@tcmalloc_1-7-0-200_PD_BL
- Rerun: sh config_brpc.sh --incs=../../../third-64 --libs=../../../third-64
- set LINK_PERFTOOLS to 1 in the Makefile
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment