From a462a3bc8ecd74590cf438feec5c42323fb4c4cd Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Fri, 4 Oct 2019 15:09:05 -0700 Subject: [PATCH] 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. --- COMPILING.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/COMPILING.md b/COMPILING.md index 865861f1ce..23072471e7 100644 --- a/COMPILING.md +++ b/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 ```