Add version warning to protoc install page (#230)

- Fixes #229
- Addresses `apt` vs `apt-get` comment in https://github.com/grpc/grpc.io/pull/214#discussion_r415670097
This commit is contained in:
Patrice Chalin 2020-05-21 16:30:55 -04:00 committed by GitHub
parent 79bfc18490
commit e4103ce083
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 2 deletions

View File

@ -2,7 +2,7 @@
title: Protocol Buffer Compiler Installation
short: Protoc Installation
description: How to install the protocol buffer compiler.
protoc-version: 3.11.4
protoc-version: 3.12.1
---
While not mandatory, gRPC applications often leverage [Protocol Buffers][pb] for
@ -18,7 +18,17 @@ to install `protoc`.
You can install the protocol compiler, `protoc`, with a package manager under
Linux or macOS using the following commands.
- Linux:
{{< warning >}}
**Check the version of `protoc`** (as indicated below) after installation to
ensure that it is sufficiently recent. The versions of `protoc` installed by
some package managers can be quite dated.
Installing from pre-compiled binaries, as indicated in the [next
section](#binary-install), is the best way to ensure that you're using the
latest release of `protoc`.
{{< /warning >}}
- Linux, using `apt` or `apt-get`, for example:
```sh
$ apt install -y protobuf-compiler
@ -32,6 +42,8 @@ Linux or macOS using the following commands.
$ protoc --version # Ensure compiler version is 3+
```
<a name="binary-install"></a>
### Install pre-compiled binaries (any OS)
To install the [latest release][] of the protocol compiler from pre-compiled