How to install Google Protobuf in MacBook Pro in Apple M1 chip?

Viewed 3734

I want to know how to install protoBuf in MacBook Pro in Apple M1 chip. Anyone known the solution?

2 Answers

It appears that protocol buffers are still migrating to M1 support. Until then, you can presumably run them with Rosetta2's x86 emulation. They'll show up in the releases page.

Edit: As of version 21 (May, 2022), there is a "Universal build" (see the releases page).

you can use
arch -x86_64 zsh
this command lets the your shell run under Rosetta2.
then you can install the protobuf with brew install protobuf@version

Related