Search code examples
phplaravelterminalmcrypt

Having trouble installing Mcrypt for a Laravel project


I'm a noob with terminals and I'm trying to start learning Laravel. However, every time I run

composer create-project laravel/laravel projectname --prefer-dist

I get a error saying Mcrypt PHP extension required. I have been searching around for two days now, I tried mcrypt installers, Homebrew, MAMP and I still get the same error.

My PHP version is 5.4.30, and I'm on OS X. I tried upgrading to 5.5 but it still says 5.4.30. Does anyone know what is going wrong or what a possible fix is?


Solution

  • I just went through this yesterday. This guide helped me tremendously - http://coolestguidesontheplanet.com/install-mcrypt-php-mac-osx-10-9-mavericks-development-server/.