Before starting: Make sure you have the necessary folders and permissions — get more information.

Links: Homepage | Downloads
Dependencies: None
Version: 2.5.8

LibMCrypt is a standardized library to MCrypt — which replaced the old Unix crypt() package.

Get the Code

Switch to /usr/local/src and download the source package.

cd /usr/local/src
curl --remote-name --location

Extract the archive and move into the folder.

tar -xzvf libmcrypt-VERSION.tar.gz
cd libmcrypt-VERSION

Compile and Install

Configure, compile and install into /usr/local/libmcrypt-VERSION.

./configure --prefix=/usr/local/libmcrypt-VERSION
make install

Create a symbolic link that points /usr/local/libmcrypt to /usr/local/libmcrypt-VERSION.

ln -s libmcrypt-VERSION /usr/local/libmcrypt