anancds / document

MIT License
1 stars 0 forks source link

gRPC install #114

Open anancds opened 4 years ago

anancds commented 4 years ago

sudo apt-get install pkg-config sudo apt-get install build-essential autoconf libtool pkg-config sudo apt-get install libgflags-dev libgtest-dev sudo apt-get install clang libc++-dev

anancds commented 4 years ago

git clone https://github.com/grpc/grpc.git cd grpc

更新第三方源码

git submodule update --init

anancds commented 4 years ago

cd grpc cd third_party/protobuf/ git submodule update --init --recursive sudo ./configure sudo make sudo make install sudo ldconfig

检查是否安装成功 which protoc

一下为对make命令的补充,不运行: 卸载命令:make uninstall 清除编译产生的可执行文件及目标文件:make clean 除了清除可执行文件和目标文件外,把configure所产生的Makefile也清除掉:make distclean

anancds commented 4 years ago

cd grpc

make sudo make install

anancds commented 4 years ago

也可以: sudo apt-get install -y git g++ make libssl-dev libgflags-dev libprotobuf-dev libprotoc-dev protobuf-compiler libleveldb-dev sudo apt-get install libgrpc-dev

anancds commented 4 years ago

看看brpc的安装步骤