OLD | NEW |
(Empty) | |
| 1 #If you are in a hurry |
| 2 |
| 3 For language-specific installation instructions for gRPC runtime, please |
| 4 refer to these documents |
| 5 |
| 6 * [C++](examples/cpp): Currently to install gRPC for C++, you need to build fro
m source as described below. |
| 7 * [C#](src/csharp): NuGet package `Grpc` |
| 8 * [Go](https://github.com/grpc/grpc-go): `go get google.golang.org/grpc` |
| 9 * [Java](https://github.com/grpc/grpc-java) |
| 10 * [Node](src/node): `npm install grpc` |
| 11 * [Objective-C](src/objective-c) |
| 12 * [PHP](src/php): `pecl install grpc-beta` |
| 13 * [Python](src/python/grpcio): `pip install grpcio` |
| 14 * [Ruby](src/ruby): `gem install grpc` |
| 15 |
| 16 |
| 17 #Pre-requisites |
| 18 |
| 19 ##Linux |
| 20 |
| 21 ```sh |
| 22 $ [sudo] apt-get install build-essential autoconf libtool |
| 23 ``` |
| 24 |
| 25 ##Mac OSX |
| 26 |
| 27 For a Mac system, git is not available by default. You will first need to |
| 28 install Xcode from the Mac AppStore and then run the following command from a |
| 29 terminal: |
| 30 |
| 31 ```sh |
| 32 $ [sudo] xcode-select --install |
| 33 ``` |
| 34 |
| 35 ##Protoc |
| 36 |
| 37 By default gRPC uses [protocol buffers](https://github.com/google/protobuf), |
| 38 you will need the `protoc` compiler to generate stub server and client code. |
| 39 |
| 40 If you compile gRPC from source, as described below, the Makefile will |
| 41 automatically try and compile the `protoc` in third_party if you cloned the |
| 42 repository recursively and it detects that you don't already have it |
| 43 installed. |
| 44 |
| 45 |
| 46 #Build from Source |
| 47 |
| 48 For developers who are interested to contribute, here is how to compile the |
| 49 gRPC C Core library. |
| 50 |
| 51 ```sh |
| 52 $ git clone https://github.com/grpc/grpc.git |
| 53 $ cd grpc |
| 54 $ git submodule update --init |
| 55 $ make |
| 56 $ [sudo] make install |
| 57 ``` |
OLD | NEW |