libmcrypt-config command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
libmcrypt-config: command not found
or when using sudo you get the following error message
sudo: libmcrypt-config: command not found
Solutions to libmcrypt-config: command not found
How To Fix libmcrypt-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu libmcrypt-config is provided by libmcrypt-dev package.
libmcrypt-dev is:
libmcrypt is the library which implements all the algorithms and modes found in mcrypt.
libmcrypt supports the algorithms: BLOWFISH, TWOFISH, DES, TripleDES, 3-WAY, SAFER-sk64, SAFER-sk128, SAFER+, LOKI97, GOST, RC2, RC6, MARS, IDEA, RIJNDAEL-128, RIJNDAEL-192, SERPENT, RIJNDAEL-256, CAST-128 (known as CAST5), CAST-256, ARCFOUR, ENIGMA, PANAMA, XTEA and WAKE. Block algorithms can be used in: CBC, ECB, CFB and OFB (8 bit and n bit, where n is the size of the algorithm’s block length).
More information can be found at the libmcrypt homepage http://mcrypt.sourceforge.net/ .
To fix this problem, we can install more using the command below.
sudo apt-get -y install libmcrypt-dev
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libmcrypt-dev.
sudo apt -y install libmcrypt-dev
Or if you have aptitude installed you can use the following command.
sudo aptitude install libmcrypt-dev
Summary
In this tutorial we learn how to fix libmcrypt-config command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.