mirror of https://github.com/grpc/grpc-java.git
COMPILING.md: Reduce dependencies when building protobuf
These changes avoid a dependency on automake, autoconf, and libtool. The ./configure script is only available via the release artifacts, not git. For example, on Debian Buster only curl and build-essential need to be installed.
This commit is contained in:
parent
31b1da5a8d
commit
a462a3bc8e
11
COMPILING.md
11
COMPILING.md
|
|
@ -42,13 +42,12 @@ The codegen plugin is C++ code and requires protobuf 3.0.0 or later.
|
|||
|
||||
For Linux, Mac and MinGW:
|
||||
```
|
||||
$ git clone https://github.com/google/protobuf.git
|
||||
$ cd protobuf
|
||||
$ git checkout v3.9.0
|
||||
$ ./autogen.sh
|
||||
$ PROTOBUF_VERSION=3.9.0
|
||||
$ curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION/protobuf-all-$PROTOBUF_VERSION.tar.gz
|
||||
$ tar xzf protobuf-all-$PROTOBUF_VERSION.tar.gz
|
||||
$ cd protobuf-$PROTOBUF_VERSION
|
||||
$ ./configure --disable-shared
|
||||
$ make
|
||||
$ make check
|
||||
$ make # You may want to pass -j to make this run faster; see make --help
|
||||
$ sudo make install
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue