Skip to content

Commit

Permalink
Update protobuf version
Browse files Browse the repository at this point in the history
  • Loading branch information
chopin-fan committed Jul 19, 2024
1 parent 6d0347b commit b8d0cac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/install_protobuf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ fi
echo "Install protobuf on ${osn}"

if [[ ${osn} == "macosx" ]]; then
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.11.4/protoc-3.11.4-osx-x86_64.zip
unzip protoc-3.11.4-osx-x86_64.zip -d protoc3
curl -OL https://github.com/google/protobuf/releases/download/v3.19.4/protoc-3.19.4-linux-x86_64.zip
unzip protoc-3.19.4-osx-x86_64.zip -d protoc3
sudo mv protoc3/bin/* /usr/local/bin/
sudo mv protoc3/include/* /usr/local/include
sudo chown ${USER} /usr/local/bin/protoc
sudo chown -R ${USER} /usr/local/include/google
elif [[ ${osn} == "linux" ]]; then
# Make sure you grab the latest version
curl -OL https://github.com/google/protobuf/releases/download/v3.11.4/protoc-3.11.4-linux-x86_64.zip
curl -OL https://github.com/google/protobuf/releases/download/v3.19.4/protoc-3.19.4-linux-x86_64.zip

# Unzip
unzip protoc-3.11.4-linux-x86_64.zip -d protoc3
unzip protoc-3.19.4-linux-x86_64.zip -d protoc3

# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
Expand Down

0 comments on commit b8d0cac

Please sign in to comment.