We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69d439c commit 8808e4bCopy full SHA for 8808e4b
install_protobuf.sh
@@ -14,10 +14,10 @@ if check_protoc_version; then
14
exit
15
fi
16
17
-wget https://github.com/google/protobuf/archive/v$PROTOC_VERSION.tar.gz
18
-tar -xzf v$PROTOC_VERSION.tar.gz
19
-cd protobuf-$PROTOC_VERSION
20
-./autogen.sh >/dev/null 2>&1
21
-./configure --prefix=$HOME/protobuf >/dev/null 2>&1
22
-make >/dev/null 2>&1
23
-make install >/dev/null 2>&1
+PROTOC_FILENAME=protoc-${PROTOC_VERSION}-linux-x86_64.zip
+mkdir -p $HOME/protobuf
+pushd $HOME/protobuf
+wget https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/${PROTOC_FILENAME}
+unzip ${PROTOC_FILENAME}
+bin/protoc --version
+popd
0 commit comments