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

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



Solution 1:[1]

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.

Solution 2:[2]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dylan McNamee
Solution 2 kikkon