I m trying to install Magento2 in MacBook Air. But having an issue of PHP extension mcrypt intl

Did all try to install this extension but not get success. Please give me your suggestion if you faced the same thing on your mac.

2 Answers 2


Depends a lot on what version of OSX you are running. Also I'm assuming that you are running Magento 2 directly within the Macbook. Or are you running within something installed on MacBook. There are a lot of potential configurations.

Have you tried something like this?


Setup php-mycrypt on macOS (and versions of Mac OS X)

These steps should have been mentioned in the prerequisites of the Laravel Installation Guide, since I'm surely not the only person trying to get Laravel running on macOS.


Install Mcrypt using Homebrew

# PHP 7
brew install php70-mcrypt

# PHP 5
brew install php56-mcrypt --without-homebrew-php

Add this line to /private/etc/php.ini:

# PHP 7

# PHP 5

You are ready to go!


Upgrade Mcrypt using Homebrew

brew reinstall -fs php71-mcrypt

What works for me is using MAMP instead of the built in php server setup. I also faced issues with missing plugins but this was due to picking up the system default PHP version and not the one bundled with MAMP.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.