title: Mcrypt with Mamp Pro on Mac OS X Yosemite 10.10
body: <p>After the Yosemite update yesterday, something is messed up with the Mcrypt extension.
  The PHP based <a href="http://laravel.com/docs/4.2/artisan" rel="nofollow noreferrer">artistan CLI of the Laravel framework</a> returns: </p>
  
  <blockquote>
    <p>Mcrypt PHP extension required.</p>
  </blockquote>
  
  <p>The PATH variable seems to be correct. Where is the misconfig? Before the update everything worked fine.</p>
  
  <p>++++ Configs ++++</p>
  
  <p>Output of 'which php':</p>
  
  <blockquote>
    <p>/Applications/MAMP/bin/php/php5.6.1/bin/php</p>
  </blockquote>
  
  <p>'php -v':</p>
  
  <blockquote>
    <p>PHP 5.6.1 (cli) (built: Oct 13 2014 18:41:35)  Copyright (c) 1997-2014
    The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend
    Technologies</p>
  </blockquote>
  
  <p>Content of .bash_profile:</p>
  
  <blockquote>
    <p>export EDITOR=nano export
    PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/texbin:/usr/local/mysql/bin
    export PATH=/Applications/MAMP/bin/php/php5.6.1/bin:$PATH</p>
  </blockquote>
  
  <p>phpinfo():
  <img src="https://i.stack.imgur.com/EIHny.jpg" alt="enter image description here">
  <img src="https://i.stack.imgur.com/bI1jH.jpg" alt="Mcrypt part"></p>
  
  <p>MAMP PRO Version:</p>
  
  <blockquote>
    <p>3.0.7.1</p>
  </blockquote>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Mamp-log says for every extension enabled in php.ini:</p>
  
  <blockquote>
    <p>PHP Warning:  PHP Startup: Unable to load dynamic library
    '/Applications/MAMP/bin/php/php5.6.1/lib/php/extensions/no-debug-non-zts-20121212/mcrypt.so'
    - dlopen(/Applications/MAMP/bin/php/php5.6.1/lib/php/extensions/no-debug-non-zts-20121212/mcrypt.so,
    9): image not found in Unknown on line 0</p>
  </blockquote>