protoc-gen-gogottrpc command not found

In this troubleshooting guide we learn how to fix protoc-gen-gogottrpc command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

protoc-gen-gogottrpc: command not found

or when using sudo you get the following error message

sudo: protoc-gen-gogottrpc: command not found

Solutions to protoc-gen-gogottrpc: command not found

How To Fix protoc-gen-gogottrpc: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu protoc-gen-gogottrpc is provided by gogottrpc package.

gogottrpc is:

The existing grpc-go project requires a lot of memory overhead for importing packages and at runtime. While this is great for many services with low density requirements, this can be a problem when running a large number of services on a single machine or on a machine with a small amount of memory.

Using the same GRPC definitions, this project reduces the binary size and protocol overhead required. We do this by eliding the net/http, net/http2 and grpc package used by grpc replacing it with a lightweight framing protocol. The result are smaller binaries that use less resident memory with the same ease of use as GRPC.

Please note that while this project supports generating either end of the protocol, the generated service definitions will be incompatible with regular GRPC services, as they do not speak the same protocol.

This package provides utilities.

To fix this problem, we can install more using the command below.

sudo apt-get -y install gogottrpc

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install gogottrpc.

sudo apt -y install gogottrpc

Or if you have aptitude installed you can use the following command.

sudo aptitude install gogottrpc

Summary

In this tutorial we learn how to fix protoc-gen-gogottrpc command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.