protoc-perl command not found

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

Introduction

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

protoc-perl: command not found

or when using sudo you get the following error message

sudo: protoc-perl: command not found

Solutions to protoc-perl: command not found

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

In Ubuntu protoc-perl is provided by libgoogle-protocolbuffers-perl package.

libgoogle-protocolbuffers-perl is:

Google Protocol Buffers is a data serialization format. It is binary (and hence compact and fast for serialization) and as extendable as XML; its nearest analogues are Thrift and ASN.1. There are official mappings for C++, Java and Python languages; this library is a mapping for Perl.

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

sudo apt-get -y install libgoogle-protocolbuffers-perl

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

You can also use apt command to install libgoogle-protocolbuffers-perl.

sudo apt -y install libgoogle-protocolbuffers-perl

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

sudo aptitude install libgoogle-protocolbuffers-perl

Summary

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