#If you are in a hurry
For language-specific installation instructions for gRPC runtime, please refer to these documents
go get google.golang.org/grpc
npm install grpc
pecl install grpc
pip install grpcio
gem install grpc
$ [sudo] apt-get install build-essential autoconf libtool
For a Mac system, git is not available by default. You will first need to install Xcode from the Mac AppStore and then run the following command from a terminal:
$ [sudo] xcode-select --install
By default gRPC uses protocol buffers, you will need the
protoc compiler to generate stub server and client code.
If you compile gRPC from source, as described below, the Makefile will automatically try and compile the
protoc in third_party if you cloned the repository recursively and it detects that you don't already have it installed.
#Build from Source
For developers who are interested to contribute, here is how to compile the gRPC C Core library.
$ git clone -b $(curl -L http://grpc.io/release) https://github.com/grpc/grpc $ cd grpc $ git submodule update --init $ make $ [sudo] make install
There are several ways to build under Windows, of varying complexity depending on experience with the tools involved.
This approach requires having msys2 installed.
CPPFLAGS=”-I/c/OpenSSL-Win32/include” LDFLAGS=”-L/c/OpenSSL-Win32/lib” make static_c