Skip to content

How to install protoc and plugins

Jihoon Seo edited this page Jul 12, 2021 · 2 revisions
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.xx.y/protoc-3.xx.y-linux-x86_64.zip
unzip protoc-3.xx.y-linux-x86_64.zip -d protoc-3.xx.y-linux-x86_64
cd protoc-3.xx.y-linux-x86_64
chmod +x bin/*
sudo cp -rv bin/* /usr/local/bin/
sudo cp -rv include/* /usr/local/include/
sudo ldconfig
go get -u github.com/golang/protobuf/protoc-gen-go
go get github.com/gogo/protobuf/protoc-gen-gofast
go get github.com/gogo/protobuf/protoc-gen-gogofast
go get github.com/gogo/protobuf/protoc-gen-gogofaster
go get github.com/gogo/protobuf/protoc-gen-gogoslick
go env -w GO111MODULE="off"
go get github.com/gogo/protobuf 
go env -w GO111MODULE="on"

Table of contents



Clone this wiki locally