How to install protobuf in mac

Step one:

brew install protobuf

go get github.com/golang/protobuf/protoc-gen-go

Step two:

export PATH=$PATH:$HOME/go/bin

export PATH=$PATH:/usr/local/go/bin

export PATH=$PATH:$GOPATH/bin

Step three:

protoc --go_out=. *.proto    

Shariful Islam Nayon

Shariful Islam | Full Stack Python/Django Developer I am Linux lover self motivated software craftsman open source contributor.My interested area Data Structure,Algorithm,Big data,Machine learning Dhaka, Bangladesh http://nayon.net/

Leave a Reply


Your email address will not be published. Required fields are marked *