The installation procedure has been explained in its official repo here. However, there are several tools we need to install before installing the gRCP Gateway plugin.

Installing prerequisite tools

Run the following commands:

sudo apt update
sudo apt install build-essential libtool autoconf automake

Installing ProtocolBuffers

Run the following commands to install ProtocolBuffers:

mkdir tmp
cd tmp
git clone
cd protobuf
make check
sudo make install

Installing packages

Run the following commands to clone the repos to $GOPATH\src then install them:

go get -u
go get -u
go get -u


After installing gRPC Gateway, Proto Compiler (protoc) may not be able to find shared libraries. Run one of the following commands:

sudo ldconfig


export LD_LIBRARY_PATH=/usr/local/lib

Source links:
gRCP Gateway installation guide
Solution of undefined macro
Protobuf cannot find shared libraries