Skip to content

Instantly share code, notes, and snippets.

@hugodias
Created May 19, 2014 23:34
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugodias/7e73c8c022100d52b6ee to your computer and use it in GitHub Desktop.
Save hugodias/7e73c8c022100d52b6ee to your computer and use it in GitHub Desktop.
Installing MCrypt extension on MAMP
  1. Install homebrew
  2. Update homebrew with brew update
  3. Add josegonzales tap running: brew tap josegonzalez/php
  4. Install mcrypt running brew install php54-mcrypt --without-homebrew-php (php54 => php 5.4.x ; php54 => php 5.3.x, etc ...)
  5. Open your PHP.ini and add extension="/usr/local/Cellar/php54-mcrypt/5.4.24/mcrypt.so"
  6. Restart your apache
@anjanesh
Copy link

anjanesh commented Jun 18, 2021

I get Error: invalid option: --without-homebrew-php

I am using MAM PRO 3.6 with PHP 7.4.12

@saosangmo
Copy link

Try this:
4. pecl install mcrypt
5. Open your PHP.ini and add
extension="/usr/local/Cellar/php@7.4/7.4.23/pecl/20190902/mcrypt.so"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment