Hi, i am trying to install Laravel via composer but it gives me an error:
"Mcrypt PHP extension required Script php artisan clear-compiled handling the post-install-cmd event returned with an error"
But when I check my PHP it says, Mcrypt is enabled. I use MAMP on Mac OS X Mavericks and here Mcrypt is enabled as well.
I tried this tutorial which told me to add something to the bash_profile-file. But it did not work. http://www.alecaddd.com/solve-mcrypt-php-extension-required-problem-laravel-installation/
I don't know what to do?
Any ideas?
Thanks
How are you checking the setting? In the .ini file or did you set up a phpinfo(); page?
If you haven't tried phpinfo(); I would check that and see what it says.
I checked it with a phpinfo-page and it says that mcrypt is enabled
Not really an answer but I'd suggest you check out Homestead. It's environment built specifically for Laravel and easy to learn. It will save you A LOT of time / hair pulling.
Are you sure it is saying it is enabled, or that PHP was built with mcrypt enabled? There is a big difference.
Sometimes the CLI version of php will use a a different php.ini than apache. Check in the php folder and make sure that the php.ini file in that folder has it enabled.
Wamp is this way as well with two php.ini files.
Yes, it says the mcrypt is enabled.
The command sudo php5enmod crypt did not work. It says command not found.
Well, where is the php folder? I have a php.ini in the /etc/ folder. In this file I added: "extension=mcrypt.so" (http://jenssegers.be/blog/49/installing-the-php-mcrypt-extension-on-osx-10-9-mavericks)
But it still does not work :/
Try this one http://simon-davies.name/mamp/using-composer-with-mamps-version-of-php It was working to me.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community