0
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 1 year has passed since last update.

Mac(m1)でProtoc (Protocol buffer)をインストールしたけど見つからなくて困った話

Posted at

gRPCを試してみたくて、protocl buffer (protoc)をインストールの仕方を調べてみたけどスムーズにいかなかったのでメモ

環境

M1 mac (pro)

やったこと

まずはprotocol bufferをインストール

brew install protobuf

インストール成功(してるっぽい)

🍺 /opt/homebrew/Cellar/protobuf/24.3: 395 files, 13.2MB
==> Running brew cleanup protobuf...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see man brew).
==> Caveats
==> protobuf
Emacs Lisp files have been installed to:
/opt/homebrew/share/emacs/site-lisp/protobuf

確認

protoc --version

みつからない・・・

$ protoc
zsh: command not found: protoc

brew linkで設定

brew link protbuf  

みつからない・・・

$ protoc
zsh: command not found: protoc

今度は --overwriteしてみる

brew link --overwrite protobuf

みつかった!

$ protoc --version
libprotoc 24.3

まとめ

結果的には解決できました。
なんでこうなるのか誰か教えてください。

0
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
0
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?