-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
protoc-gen-go: program not found or is not executable #795
Comments
See the Installation section of the package README here: https://github.com/golang/protobuf
|
Hello Neild, |
Hi fclinux, Thanks |
no,I'm pretty sure I've added the path, but I still get the same error message
|
Hey guys, actually, i cannot manually install the protobuf, i use ubuntu
and instal via apt library then protobuf work well. Go a little bit deep
into the system file then we can see the guide on protobuf web doesnt
correct.
Try yourself
…On Fri, Dec 6, 2019, 18:10 cheche ***@***.***> wrote:
您好Neild,
我花了大约8个小时进行检查,并按照您的指南进行操作,但是我会告诉您,这个最新版本仍然存在。请不要试图关闭这个并相信你是正确的
嗨,fclinux,
我有同样的问题。您能否检查是否已将GOPATH和GOBIN添加到PATH中?
在将GOPATH和GOBIN添加到路径时,我的问题已解决。
谢谢
Nikhil
no,I'm pretty sure I've added the path, but I still get the same error
message
1 export GOPATH=/Users/chezixin/go
2 export GOBIN=/Users/chezixin/go/bin
3
4 export GO111MODULE=on
5 # export GOPROXY=https://goproxy.io
6 export GOPROXY=https://goproxy.cn
7
8
9 export PATH="$PATH:/Applications/Postgres.app/Contents/Versions/12/bin:/User s/chezixin/flutterSDK/flutter/bin:/usr/local/go/bin:$GOPATH:$GOBIN'"
10
czxmac:~ chezixin$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/Applications/Postgres.app/Contents/Versions/latest/bin:/Applications/Postgres.app/Contents/Versions/12/bin:/Users/chezixin/flutterSDK/flutter/bin:/usr/local/go/bin:/User/chezixin:/Users/chezixin/go/bin':/Applications/Postgres.app/Contents/Versions/12/bin:/Users/chezixin/flutterSDK/flutter/bin:/usr/local/go/bin:/Users/chezixin/go:/Users/chezixin/go/bin'
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#795?email_source=notifications&email_token=AD4FKAICRDRRYFKF2EBGFVTQXIXKTA5CNFSM4GTIL722YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGDZBFA#issuecomment-562532500>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD4FKAJNTBLVFB2HX4P3UK3QXIXKTANCNFSM4GTIL72Q>
.
|
Hello guys, |
I had this problem as well recently [using ubuntu 18.04]
|
Another quick fix: Be sure the absolute path shows up in your |
Tnx @rickynyairo . Short and precise without trying to be too smart. :) |
That worked for me 😄 👍 |
you are pretty right. |
Can we specify path to protoc-gen-go manually? I dont want to push protoc-gen-go to my PATH because I have few different versions of protoc-gen-go and I need each of them to work separately |
Yes, see the |
For any future lurkers here you can do it like |
In my case go get installed everything correctly and my path was set correctly after some time I noticed that the binary installed by go get just was named incorrectly! |
You are likely accidentally using |
I've created a simple GUI for protoc CLI, feel free to check it out. Just needs binaries to be fed in and your proto files. |
can you plz copy the full cmd, i think the docs are outdated |
That worked for me. I'm using Ubuntu 20.04. Go version |
@willDrr Can you explain how you go about it? |
@adeniyistephen I don't know man. I just pasted the 4 four lines above and it worked. I can't remember how did I install Go. These are the lines in my .bashrc related to Go export PATH=$PATH:/usr/local/go/bin //taked from #795 (comment) |
@willDrr what is inside your $PATH:/usr/local/protobuf/bin"? |
@adeniyistephen I echoed and this is what I have |
Ok cool, I just sent you a mail. |
Thanks, it works in the Mac OS environment. Save my life! |
This fixed the issue I was having! I'm using Fish and some of the commands were different for me. If anyone runs into this in the future, |
|
For me to work a protoc command with a make file inside alpine container, I had to install this: |
That worked for me. I'm using Ubuntu 22.04.2. Go version go version go1.20 |
Hi,
I correctly installed and protobuf in my Ubuntu 18.04.01 Server Edition following the steps here outlined:
https://github.com/protocolbuffers/protobuf/blob/master/src/README.md
and without any problems compiled the example found here:
https://developers.google.com/protocol-buffers/docs/cpptutorial
But when trying to do the same in golang:
Other information:
in my .bashrc I added the following lines:
go version:
How to make protoc-gen-go functioning?
Looking forward to your kind help.
Marco
The text was updated successfully, but these errors were encountered: