mirror of https://github.com/grpc/grpc.io.git
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:
parent
79bfc18490
commit
e4103ce083
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue