On Thu, 25 Jun 2015 04:13:52 -0700 (PDT)
Aravinth Veeramuthu <
aravinth....@vembu.com> wrote:
> I already install it. But my command to create *.pb.go is not
> working. can you explain it step by step ?
Using a sheer guess, I'd say after bringing in that project, you need
to do
go install
github.com/golang/protobuf/protoc-gen-go
while in your {workspace}/src folder.
The program whose source code is now located in
{workspace}/src/
github.com/golang/protobuf/protoc-gen-go
will be compiled and installed under the {workspace}/bin folder.
The next sheer guess is that if some tool you're using attempts to
actually call that protoc-gen-go.exe which sould have been compiled on
the previous step, to make it work, you have to append the full path to
your {workspace}/bin folder to the PATH environment variable of your
Windows user. Without this, any external tool which wants to call
protoc-rpc-go.exe would need to know the full path to that tool, which
is unlikely. So you have to add the path of the folder containing that
program to the list contained in the PATH environment variable.
The {workspace} token I'm using is the path to your Go workspace, that
is, the place where your local Go files reside -- as detailed in [1].
1.
https://golang.org/doc/code.html