Reputation: 4359
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?
Upvotes: 0
Views: 178
Reputation: 394
I just went through this yesterday. This guide helped me tremendously - http://coolestguidesontheplanet.com/install-mcrypt-php-mac-osx-10-9-mavericks-development-server/.
Upvotes: 0
Reputation: 475
Because Mcrypt is an extension which is not shipped within the PHP package. You need to install it on your server with this command:
sudo apt-get install php5-mcrypt
And restart the webserver to let it kick in.
Upvotes: 1