如果你在网上找了好多资料还是依旧无法安装mcrypt推荐你来试试本方法!
sudo aptitude install libmcrypt-dev 或者sudo apt-get install php5-mcrypt 模块安装完毕后,将mcrypt模块加载 sudo php5enmod mcrypt 检查:/etc/php5/apache2/conf.d/ /etc/php5/mods-available/ 有mcrypt.ini文件 随后重启apache2 sudo service apache2 restart
转自:http://zhidao.baidu.com/link?url=aup_9ce9laBPPZay9Cc_XAlvM1n8N3R816B9yOt_fW2mUPRQlX_0kkfg5aTmiOOL3BHJtKga50FOZY8AgrV1wbylweXkYMgyAvvuHGR7xiy