title: 'protoc-gen-go-grpc: program not found or is not executable', despite all the efforts
body: <p>I'm trying to run makefile command 'gen' from this project <a href="https://github.com/penthaapatel/grpcblog" rel="nofollow noreferrer">https://github.com/penthaapatel/grpcblog</a>. The command is: <code>protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative blog/blog.proto</code> However I get an error:</p>
  <pre><code>protoc-gen-go-grpc: program not found or is not executable
  --go-grpc_out: protoc-gen-go-grpc: Plugin failed with status code 1.
  make: *** [/home/deckard/go/src/grpcblog/Makefile:2: gen] Error 1
  </code></pre>
  <p>I use Ubuntu 20.04? Golang-1.13.8 with $GOROOT=<code>/usr/lib/go-1.13</code> and $GOPATH=<code>/home/deckard/go</code> ($HOME is <code>/home/deckard</code>). Protoc is <code>libprotoc v.3.6.1.</code>. I installed protobuf-compiler both with:</p>
  <pre><code>sudo apt install protobuf-compiler
  </code></pre>
  <p>and</p>
  <pre><code>go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
  </code></pre>
  <p>There's a folder <code>/home/deckard/go/src/github.com/golang/protobuf</code> and <code>/home/deckard/go/src/google.golang.org/protobuf</code> with <code>/home/deckard/go/src/google.golang.org/protobuf</code>, with, I guess, everything i need.
  My bashrc configurations (tried few methods, so things overlap each other):</p>
  <pre><code>export GOROOT=/usr/lib/go-1.13
  export GOPATH=$HOME/go
  export GOBIN=$GOPATH/bin
  export PATH=$PATH:$GOROOT:$GOPATH:$GOBIN
  export PATH=$PATH:$GOPATH/bin
  export GO_PATH=~/go
  export PATH=$PATH:/$GO_PATH/bin
  </code></pre>
  <p>So i tried solutions from here: <a href="https://stackoverflow.com/questions/57700860/protoc-gen-go-program-not-found-or-is-not-executable">protoc-gen-go: program not found or is not executable</a>, but none of them helped me. Any clue would be helpful, because I stuck and am very tired.</p>
  <p>UPDATE: <code>ls -l /home/deckard/go/bin/protoc-gen-go-grpc</code> shows <code>rwxrwxr-x 1 deckard deckard 7970222 мая  1 14:55 /home/deckard/go/bin/protoc-gen-go-grpc</code>, and <code>printenv PATH</code> returns <code>/home/deckard/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/deckard/.dotnet/tools:/usr/lib/go-1.13:/home/deckard/go:/home/deckard/go/bin:/home/deckard/go/bin://home/deckard/go/bin</code></p>
  <p>UPDATE: <code>which protoc</code> returns <code>/usr/bin/protoc</code> (tried to install it from precompiled binary to <code>/home/deckard/.local/bin/protoc</code>, didn't helped). In both cases <code>protoc-gen-go-grpc --version</code> returns <code>protoc-gen-go-grpc 1.1.0</code>. I also tried to copy everything from google.golang.org/protobuf to google.golang.org/protobuf, no result.</p>