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:
Eric Anderson 2019-10-04 15:09:05 -07:00
parent 31b1da5a8d
commit a462a3bc8e
1 changed files with 5 additions and 6 deletions

View File

@ -42,13 +42,12 @@ The codegen plugin is C++ code and requires protobuf 3.0.0 or later.
For Linux, Mac and MinGW: For Linux, Mac and MinGW:
``` ```
$ git clone https://github.com/google/protobuf.git $ PROTOBUF_VERSION=3.9.0
$ cd protobuf $ curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOBUF_VERSION/protobuf-all-$PROTOBUF_VERSION.tar.gz
$ git checkout v3.9.0 $ tar xzf protobuf-all-$PROTOBUF_VERSION.tar.gz
$ ./autogen.sh $ cd protobuf-$PROTOBUF_VERSION
$ ./configure --disable-shared $ ./configure --disable-shared
$ make $ make # You may want to pass -j to make this run faster; see make --help
$ make check
$ sudo make install $ sudo make install
``` ```