I have encountered the problem on installing Protobuf for Grpc.
I recorded the solution here as a memo.
Background:
The pre-compiled binary can’t be run on my m1 Imac.
Solution: compile it locally
/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"export PATH=/opt/homebrew/bin:$PATHgit clone https://github.com/protocolbuffers/protobuf.git
brew install autoconf
brew install automake
brew install Libtool
autoreconf -i
./autogen.sh
./configure
make
make check
sudo make installexport PATH=/opt/usr/local/bin:$PATH
Done :)