Skip to content

Instantly share code, notes, and snippets.

Last active Mar 20, 2018
What would you like to do?
How to install protoc to use with grpc
#Get a release here
sudo -s
cd /usr/local/include
mkdir google
wget -O
unzip -d tmp
#install protoc
mv tmp/bin/protoc /usr/local/bin/
chmod +x /usr/local/bin/protoc
protoc --version
# should say `libprotoc 3.5.0`
mv tmp/include/google/protobuf google/
#Note: Consider cloning this somewhere else like where you keep git repos. I use ~/git for example and use a symlink
git clone tmp/googleapis
mv tmp/googleapis/google/api/ google/
chmod 755 -R ./google
#clean up
rm -rf ./tmp/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment