Error "protoc-gen-go: program not found or is not executable"

시훈·2024년 1월 30일
0

go

목록 보기
1/2
post-thumbnail

이슈

protoc --go_out=plugins=grpc:example example.proto

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.

해결방법

  • .zshrc에 접속해서 환경변수를 추가해주자.
export GOPATH=$HOME/go 
export GOBIN=$HOME/go/bin 
export PATH=$PATH:/usr/local/go/bin:$(go env GOBIN) 
  • 변경 사항을 적용
source .zshrc
profile
생산성을 높이고, 집중을 즐기는 개발자

0개의 댓글