5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

--go_out: protoc-gen-go: Plugin failed with status code 1.の解決方法

Last updated at Posted at 2020-10-07

protoファイルを作成し、コードを自動生成しようとした際にエラーが発生。

protoc -I helloworld/ helloworld/helloworld.proto --go_out=plugins=grpc:helloworld

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

PATHを設定してくださいと言われているようなので、bash_profileに以下を追加すれば解決!

export GOPATH=$HOME/go
PATH=$PATH:$GOPATH/bin
5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?