0

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.

0

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?

https://gist.github.com/idleberg/24479f34dc5007e50d47

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

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
extension="/usr/local/Cellar/php70-mcrypt/7.0.x/mcrypt.so"

# PHP 5
extension="/usr/local/Cellar/php56-mcrypt/5.6.x/mcrypt.so"

You are ready to go!

Upgrade

Upgrade Mcrypt using Homebrew

brew reinstall -fs php71-mcrypt
0

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, privacy policy and cookie policy

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