Protoc-gen-gogo compiler issue with go

2k Views Asked by At
Step 1:- add following dependencies 
           

github.com/gogo/protobuf/proto [ok] github.com/gogo/protobuf/protoc-gen-gogo[ok] github.com/gogo/protobuf/gogoproto[ok] google.golang.org/grpc[ok]

Step 2:- 
  create proto file in a project 
Step 3:-
  change directory and type this command 

protoc --gogo_out=. greet

error:=
protoc-gen-gogo: program not found or is not executable
Please specify a program using the absolute path or make sure the program is available in your PATH system variable.
--gogo_out: protoc-gen-gogo: Plugin failed with status code 1.

PLease help me

1

There are 1 best solutions below

4
On

It seems you did not install protoc-gen-gogo on your system. Install it using go get github.com/gogo/protobuf/protoc-gen-gogo and try again. For more help refer to this - https://github.com/gogo/protobuf