Merge pull request #14394 from srini100/master

Remove redundant build instructions
reviewable/pr10684/r21^2
Srini Polavarapu 7 years ago committed by GitHub
commit c7cc3f9692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      INSTALL.md
  2. 53
      src/cpp/README.md

@ -70,6 +70,12 @@ 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 repository recursively and it detects that you don't already have it
installed. installed.
If it hasn't been installed, you can run the following commands to install it.
```sh
$ cd grpc/third_party/protobuf
$ sudo make install # 'make' should have been run by core grpc
```
# Build from Source # Build from Source

@ -3,56 +3,9 @@
This directory contains source code for C++ implementation of gRPC. This directory contains source code for C++ implementation of gRPC.
# Pre-requisites To install gRPC for C++ on your system, follow the instructions to build from source
[here](../../INSTALL.md). This also installs the protocol buffer compiler
## Linux `protoc` (if you don't have it already), and the C++ gRPC plugin for `protoc`.
```sh
$ [sudo] apt-get install build-essential autoconf libtool
```
## Mac OSX
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:
```sh
$ [sudo] xcode-select --install
```
## Protoc
By default gRPC uses [protocol buffers](https://github.com/google/protobuf),
you will need the `protoc` compiler to generate stub server and client code.
If you compile gRPC from source, as described below, this also installs the
`protoc` compiler.
If it hasn't been installed, you can run the following commands to install it.
```sh
$ cd grpc/third_party/protobuf
$ sudo make install # 'make' should have been run by core grpc
```
Alternatively, you can download `protoc` binaries from
[the protocol buffers Github repository](https://github.com/google/protobuf/releases).
# Installation
Currently to install gRPC for C++, you need to build from source as described
below.
# Build from Source
```sh
$ git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc
$ cd grpc
$ git submodule update --init
$ make
$ [sudo] make install
```
# Documentation # Documentation

Loading…
Cancel
Save