I am using Ubuntu 20.04, Golang 16.2, then I downloaded the required protobuf release here: https://github.com/protocolbuffers/protobuf/releases/download/v3.15.8/protoc-3.15.8-linux-aarch_64.zip for my system, and extract it in "Download directory", well you say that in No. 2:
- Unzip and add location of the protoc.exe to your PATH environment variable, so how was that in Linux? protoc-gen-go: unable to determine Go import path for , well, I just can't get it where is ny PATH environment variable really is, I did nano ~/.bashrc then source ~/.bashrc then restart my pc even nano ~/.zshrc then source ~/.zshrc then restart my pc I also try nano ~/.profile then source ~/.profile then restart my pc but where? On Friday, June 26, 2015 at 12:55:47 AM UTC+8 Joshua wrote: > Here is the step by step directions: > > 1. Download protoc-win32.zip from > https://developers.google.com/protocol-buffers/docs/downloads > 2. Unzip and add location of the protoc.exe to your PATH environment > variable > 3. Run `protoc --version` from command prompt to verify > 4. Verify the your GOPATH environment variable is set > 5. Run `go get -u github.com/golang/protobuf/protoc-gen-go` > <http://github.com/golang/protobuf/protoc-gen-go> from command prompt. > This should install the binary to %GOPATH%/bin > 6. Add `%GOPATH%/bin` to your PATH environment variable > 7. Open a new command prompt, navigate to your .proto file, run > `protoc --go_out=. *.proto` > > NOTE: if you are running from a text editor or ide, you may need to reboot > after modifying your environment variables > > > On Thursday, June 25, 2015 at 9:22:47 AM UTC-4, Aravinth Veeramuthu wrote: >> >> where i have to place my github.com/golang/protobuf/protoc-gen-go this >> package? >> >> >> On Thursday, June 25, 2015 at 6:51:20 PM UTC+5:30, Aravinth Veeramuthu >> wrote: >>> >>> Where i have include those? >>> >>> >>> On Thursday, June 25, 2015 at 6:50:02 PM UTC+5:30, Joshua wrote: >>>> >>>> I use both. Did you include the %GOPATH%/bin in your %PATH%? >>>> >>>> Joshua >>>> >>>> On Thursday, June 25, 2015 at 9:17:51 AM UTC-4, Aravinth Veeramuthu >>>> wrote: >>>>> >>>>> Yes, I download it.But i have some problem to run the command and it >>>>> shows --go_out protoc-gen-go : The system cannot find the file >>>>> specified. >>>>> Are u the Windows user or Linux user? >>>>> >>>>> On Thursday, June 25, 2015 at 4:59:46 PM UTC+5:30, Joshua wrote: >>>>>> >>>>>> Did you download protoc? protoc uses the protoc-gen-go as a plugin. I >>>>>> usually just use something like this: >>>>>> protoc --go_out=. *.proto >>>>>> >>>>>> Joshua >>>>>> >>>>>> On Thursday, June 25, 2015 at 5:02:43 AM UTC-4, Aravinth Veeramuthu >>>>>> wrote: >>>>>>> >>>>>>> How to install protoc-gen-go (Go protocol buffer compiler plugin) in >>>>>>> windows ? >>>>>>> >>>>>>> I have a problem when i convert the *.proto type protocol buffer >>>>>>> file into the *.pb.go format using protoc-gen-go Complier. >>>>>>> >>>>>>> I got the following error... >>>>>>> >>>>>>> -go_out: protoc-gen-go: The system cannot find the file specified. >>>>>>> >>>>>> -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/e684c821-3d0e-4321-8329-3d1a1753aa33n%40googlegroups.com.