参考:
http://coolestguidesontheplanet.com/how-to-install-mcrypt-for-php-on-mac-osx-lion-10-7-development-server/
版本稍有不同,比较麻烦。
还是直接用brew安装吧。
brew install php54-mcrypt
mac下安装mcrypt扩展