cmph command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cmph: command not found
or when using sudo you get the following error message
sudo: cmph: command not found
Solutions to cmph: command not found
How To Fix cmph: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cmph is provided by libcmph-tools package.
libcmph-tools is:
Minimal perfect hash functions are widely used for memory efficient storage and fast retrieval of items from static sets, such as words in natural languages, reserved words in programming languages or interactive systems, universal resource locations (URLs) in Web search engines, or item sets in data mining techniques.
This package contains the cmph command line utility to generate and query minimal perfect hash functions.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libcmph-tools
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libcmph-tools.
sudo apt -y install libcmph-tools
Or if you have aptitude installed you can use the following command.
sudo aptitude install libcmph-tools
Summary
In this tutorial we learn how to fix cmph command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.