Mcrypt error when running 'composer install' from CLI
Verify if mcypt is really installed
1php -m|grep -i mcrypt
Counter-check from phpmyadmin. If it say installed there, issue is that php-cli can't see mcrypt as a module. Find the mcrypt definition and symlink similar to below:
1ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/cli/conf.d/20-mcrypt.ini
See details in https://stackoverflow.com/questions/16830405/laravel-requires-the-mcrypt-php-extension