grpc_objective_c_plugin command not found

In this troubleshooting guide we learn how to fix grpc_objective_c_plugin command not found error message

Introduction

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

grpc_objective_c_plugin: command not found

or when using sudo you get the following error message

sudo: grpc_objective_c_plugin: command not found

Solutions to grpc_objective_c_plugin: command not found

How To Fix grpc_objective_c_plugin: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu grpc_objective_c_plugin is provided by protobuf-compiler-grpc package.

protobuf-compiler-grpc is:

A modern, open source remote procedure call (RPC) framework that can run anywhere. It enables client and server applications to communicate transparently, and makes it easier to build connected systems.

This package provides the plugins needed for compiling gRPC service definitions with the protobuf compiler.

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

sudo apt-get -y install protobuf-compiler-grpc

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

You can also use apt command to install protobuf-compiler-grpc.

sudo apt -y install protobuf-compiler-grpc

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

sudo aptitude install protobuf-compiler-grpc

Summary

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