Installing protobuf tools on MacOS

Table of Contents

Installing protoc

brew install protobuf

Or follow different instructions.

Installing grpc_cli

Option 1. Easy way.

brew tap grpc/grpc
brew install --with-plugins grpc

It is described here — https://github.com/grpc/homebrew-grpc.

Option 2. Hard way — using cmake and make. NOT RECOMMENDED.

brew install autoconf automake libtool shtool cmake

git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc
cd grpc
git submodule update --init

mkdir -p cmake/build
cd cmake/build
cmake ../..
make

gRPC_INSTALL=ON make install
# and continue accordgin to https://github.com/grpc/grpc/blob/master/BUILDING.md

Or follow these instructions

LEAVE A COMMENT