title: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20121212/mcrypt.so
body: <p>I've just got a new mac with yosemite 10.10.4 installed. PHP version 5.5.24 is installed and apache is configured. I can envoke php on localhost. 
  When i want to run php artisan in terminal I keep getting this error: </p>
  
  <blockquote>
    <p>PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20121212/mcrypt.so' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20121212/mcrypt.so, 9): image not found in Unknown on line 0</p>
  </blockquote>
  
  <p>I've tried to install mcrypt. I can find the <code>mcrypt.so</code> in <code>/usr/lib/php/extensions/no-debug-non-zts-20090626</code>.</p>
  
  <p>I've tried to move the <code>mcrypt.so</code> file from <code>/usr/lib/php/extensions/no-debug-non-zts-20090626</code> into <code>/usr/lib/php/extensions/no-debug-non-zts-20121212</code> which is the folder that php references to. But that of course doesn't work and I get the error that php and mcrypt are compiled differently.</p>
  
  <p>Maybe a reinstall of php could work, but I can't seem to find a solution to that.</p>
  
  <p>Hope that someone can shed a light on this issue. I've spend a lot of hours on trying different things.</p>
  
  <p>Thanks in advance.</p>
  
  <p>BO </p>