Video:

Installing the Protoc compiler

May 21, 2021

Course Instructor: Elliot Forbes

Hey Gophers! My name is Elliot and I'm the creator of TutorialEdge and I've been working with Go systems for roughly 5 years now. Feel free to reach out to me on twitter - @Elliot_F

Before we dive in to defining and building our protos, we’ll first need to ensure that we have the compiler successfully installed on our machine.

Installation

Full Information can be found here: https://grpc.io/docs/protoc-installation/

Mac Installation with Homebrew

$ brew install protobuf
$ protoc --version

Linux Installation with apt

$ apt install -y protobuf-compiler
$ protoc --version  

Windows installation

You can find the latest Windows executable on the releases page of the protocolbuffers/protobuf Github Repository here: github.com/protocolbuffers/protobuf/releases

Conclusion

Awesome, we should now have everything we need to compile our protobufs and generate the Go code that will be stored within our mono-repo.