ubuntu安装编译brpc

//安装git、g++、make、libssl-dev
$ sudo apt-get install git g++ make libssl-dev
//安装gflags、protobuf、leveldb
$ sudo apt-get install realpath libgflags-dev libprotobuf-dev libprotoc-dev protobuf-compiler libleveldb-dev
//安裝google perftools、gtest
gperf libgoogle-perftools-dev libgtest-dev
//克隆brpc源码
$ git clone https://github.com/brpc/brpc.git
//进入源码根目录
$ cd brpc
//编译
$ mkdir build
$ cd build
$ cmake ..
$ make

猜你喜欢

转载自blog.csdn.net/qq_37674858/article/details/81475552