Skip to content

Commit 8808e4b

Browse files
committed
1 parent 69d439c commit 8808e4b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

install_protobuf.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ if check_protoc_version; then
1414
exit
1515
fi
1616

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
17+
PROTOC_FILENAME=protoc-${PROTOC_VERSION}-linux-x86_64.zip
18+
mkdir -p $HOME/protobuf
19+
pushd $HOME/protobuf
20+
wget https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/${PROTOC_FILENAME}
21+
unzip ${PROTOC_FILENAME}
22+
bin/protoc --version
23+
popd

0 commit comments

Comments
 (0)