https://github.com/grpc/grpc/blob/master/INSTALL.mdc++
$ [sudo] apt-get install build-essential autoconf libtool pkg-configgit
If you plan to build from source and run tests, install the following as well:github
$ [sudo] apt-get install libgflags-dev libgtest-devcurl
$ [sudo] apt-get install clang libc++-devui
Protocurl
By default gRPC uses protocol buffers, you will need the protoc compiler to generate stub server and client code.rest
If you compile gRPC from source, as described below, the Makefile will automatically try compiling the protoc in third_party \code
if you cloned the repository recursively and it detects that you do not already have 'protoc' compiler installed.server
If 'protoc' compiler has not been installed, following commands can be used for installation.rpc
$ cd grpc/third_party/protobuf
$ sudo make install # 'make' should have been run by core grpc
Build from Source
For developers who are interested to contribute, the following commands show how to compile the gRPC C Core library.
$ git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc
$ cd grpc
$ git submodule update --init
$ make
$ [sudo] make install