Skip to main content
Fixed the weird syntax highlighting (as a result, the dif looks more extensive than it really is - use view "Side-by-side Markdown" to compare).
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

Also try the official solution from grpc.io documentation.

Go plugins for the protocol compiler:

Install the protocol compiler plugins for Go using the following commands:

export GO111MODULE=on # Enable module mode go get google.golang.org/protobuf/cmd/protoc-gen-go \ google.golang.org/grpc/cmd/protoc-gen-go-grpc 
export GO111MODULE=on # Enable module mode go get google.golang.org/protobuf/cmd/protoc-gen-go \ google.golang.org/grpc/cmd/protoc-gen-go-grpc 

Update your PATH so that the protoc compiler can find the plugins:

export PATH="$PATH:$(go env GOPATH)/bin" 

This worked for me.

Also try the official solution from grpc.io documentation.

Go plugins for the protocol compiler:

Install the protocol compiler plugins for Go using the following commands:

export GO111MODULE=on # Enable module mode go get google.golang.org/protobuf/cmd/protoc-gen-go \ google.golang.org/grpc/cmd/protoc-gen-go-grpc 

Update your PATH so that the protoc compiler can find the plugins:

export PATH="$PATH:$(go env GOPATH)/bin" 

This worked for me.

Also try the official solution from grpc.io documentation.

Go plugins for the protocol compiler:

Install the protocol compiler plugins for Go using the following commands:

export GO111MODULE=on # Enable module mode go get google.golang.org/protobuf/cmd/protoc-gen-go \ google.golang.org/grpc/cmd/protoc-gen-go-grpc 

Update your PATH so that the protoc compiler can find the plugins:

export PATH="$PATH:$(go env GOPATH)/bin" 

This worked for me.

Removed the shell prompts to avoid confusion. Removed meta information (this belongs in comments).
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

Just in case if anyone else is still facing this issue,Also try the official solution from grpc.io documentation.

Go plugins for the protocol compiler:

Install the protocol compiler plugins for Go using the following commands:

$ export GO111MODULE=on # Enable module mode $ go get google.golang.org/protobuf/cmd/protoc-gen-go \ google.golang.org/grpc/cmd/protoc-gen-go-grpc 

Update your PATH so that the protoc compiler can find the plugins:

$ export PATH="$PATH:$(go env GOPATH)/bin" 

This worked for me.

Just in case if anyone else is still facing this issue, try the official solution from grpc.io documentation

Go plugins for the protocol compiler:

Install the protocol compiler plugins for Go using the following commands:

$ export GO111MODULE=on # Enable module mode $ go get google.golang.org/protobuf/cmd/protoc-gen-go \ google.golang.org/grpc/cmd/protoc-gen-go-grpc 

Update your PATH so that the protoc compiler can find the plugins:

$ export PATH="$PATH:$(go env GOPATH)/bin" 

This worked for me.

Also try the official solution from grpc.io documentation.

Go plugins for the protocol compiler:

Install the protocol compiler plugins for Go using the following commands:

export GO111MODULE=on # Enable module mode go get google.golang.org/protobuf/cmd/protoc-gen-go \ google.golang.org/grpc/cmd/protoc-gen-go-grpc 

Update your PATH so that the protoc compiler can find the plugins:

export PATH="$PATH:$(go env GOPATH)/bin" 

This worked for me.

Source Link

Just in case if anyone else is still facing this issue, try the official solution from grpc.io documentation

Go plugins for the protocol compiler:

Install the protocol compiler plugins for Go using the following commands:

$ export GO111MODULE=on # Enable module mode $ go get google.golang.org/protobuf/cmd/protoc-gen-go \ google.golang.org/grpc/cmd/protoc-gen-go-grpc 

Update your PATH so that the protoc compiler can find the plugins:

$ export PATH="$PATH:$(go env GOPATH)/bin" 

This worked for me.