Laravel requires the Mcrypt PHP extension error

By: Ryan Wong at

I had this issue occur when installing laravel on macos.

“Laravel requires the Mcrypt PHP extension.”

To fix this add this to your ~/.bash_profile:

1
export PATH=/Applications/MAMP/bin/php/php5.4.10/bin:$PATH

You can specify the version of php your using.

Hope this helps you out.