Skip to content

Commit 2915a3b

Browse files
author
Jeff Bornemann
committed
Small modifications to install_protoc_from_source
1 parent 36b1e41 commit 2915a3b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

install_protoc_from_source.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PROTOC_VERSION="2.6.1"
55
if [[ ! -d "$HOME/protobuf/lib" || "$(protoc --version)" != *${PROTOC_VERSION}* ]]; then
66
pushd .
77
cd /tmp
8-
wget https://github.com/google/protobuf/releases/download/v${PROTOC_VERSION}/protobuf-${PROTOC_VERSION}.tar.gz
8+
wget --no-check-certificate https://github.com/google/protobuf/releases/download/v${PROTOC_VERSION}/protobuf-${PROTOC_VERSION}.tar.gz
99
tar -xzvf protobuf-${PROTOC_VERSION}.tar.gz
1010
cd protobuf-${PROTOC_VERSION}
1111
./configure --prefix=$HOME/protobuf
@@ -16,6 +16,9 @@ if [[ ! -d "$HOME/protobuf/lib" || "$(protoc --version)" != *${PROTOC_VERSION}*
1616
rm -rf protobuf-${PROTOC_VERSION}
1717
rm -f protobuf-${PROTOC_VERSION}.zip
1818
popd
19+
echo "Add $HOME/protobuf/bin to your path!"
20+
echo "On *nix:"
21+
echo "echo 'PATH=\$PATH:~/protobuf/bin' >> ~/.bash_profile"
1922
else
2023
echo "$(protoc --version) already installed"
2124
fi

0 commit comments

Comments
 (0)