File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ PROTOC_VERSION="2.6.1"
5
5
if [[ ! -d " $HOME /protobuf/lib" || " $( protoc --version) " != * ${PROTOC_VERSION} * ]]; then
6
6
pushd .
7
7
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
9
9
tar -xzvf protobuf-${PROTOC_VERSION} .tar.gz
10
10
cd protobuf-${PROTOC_VERSION}
11
11
./configure --prefix=$HOME /protobuf
@@ -16,6 +16,9 @@ if [[ ! -d "$HOME/protobuf/lib" || "$(protoc --version)" != *${PROTOC_VERSION}*
16
16
rm -rf protobuf-${PROTOC_VERSION}
17
17
rm -f protobuf-${PROTOC_VERSION} .zip
18
18
popd
19
+ echo " Add $HOME /protobuf/bin to your path!"
20
+ echo " On *nix:"
21
+ echo " echo 'PATH=\$ PATH:~/protobuf/bin' >> ~/.bash_profile"
19
22
else
20
23
echo " $( protoc --version) already installed"
21
24
fi
You can’t perform that action at this time.
0 commit comments