make_encmap command not found

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

Introduction

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

make_encmap: command not found

or when using sudo you get the following error message

sudo: make_encmap: command not found

Solutions to make_encmap: command not found

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

In Ubuntu make_encmap is provided by libxml-encoding-perl package.

libxml-encoding-perl is:

XML::Encoding, built as a subclass of XML::Parser, parses encoding map XML files. Included in the package is the compile_encoding script that compiles these to the binary form used by XML::Parser in order to parse scripts in the given encoding. Also included is a script that generates encoding map XML files from the type of mapping files obtained at ftp://ftp.unicode.org/Public/MAPPINGS.

XML::Encoding comes with a set of encoding maps installed in the /usr/share/libxml-encoding-perl directory. These are used when building the libxml-parser-perl package.

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

sudo apt-get -y install libxml-encoding-perl

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

You can also use apt command to install libxml-encoding-perl.

sudo apt -y install libxml-encoding-perl

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

sudo aptitude install libxml-encoding-perl

Summary

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