Composer error [The requested PHP extension ext-mcrypt * is missing from your system. Install or enable PHP’s mcrypt extension.]

以下の記事でCakePHP2.xのdebug kitをcomposerからインストールしようとして以下のコマンド実行でエラー[The requested PHP extension ext-mcrypt * is missing from your system. Install or enable PHP’s mcrypt extension.]となりました。

https://normalblog.net/system/cakephp/cakephp2-x_debug_kit_install_error/

mcrypt がない為だったので、この対応が以下になります。

またエラーになりました↓

変な日本語になっていたので英語で再実行

英語でエラー内容確認↓

英語のログで検索して見つかった情報で、以下を実行しました。

これでインストール出来ました。良かった。

※結構はまりました。

最初、yumでなくapt-getを使用してインストールしようとしましたが、そもそもapt-getが入っていなかったので、apt-getをインストールしようとしましたが、それも出来ませんでした。

apt-getインストール出来ない問題は課題として残しておきました。

https://normalblog.net/system/linux/apt-get/

参考サイト様

http://forum.remirepo.net/viewtopic.php?id=3319

http://blog.bgbgbg.net/archives/2471

https://laracasts.com/discuss/channels/general-discussion/ext-mcrypt-the-requested-php-extension-mcrypt-is-missing?page=1