title: PHP mcrypt installing and setting up laravel environment issues
body: <p>I am using Mac OS X Lion 10.7.5 and I want to clear one thing I do not want to use XAMPP, MAMP anymore. </p>
  
  <p>So I enabled apache, php and installed mysql following this <a href="http://coolestguyplanettech.com/downtown/install-and-configure-apache-mysql-php-and-phpmyadmin-osx-108-mountain-lion" rel="nofollow">link</a>. This work well. Then I downloaded laravel and installed it following this <a href="http://laravel.com/docs/install" rel="nofollow">link</a>. I copied laravel folder inside <code>Sites</code> folder which I created according to first link tutorial. Now when I click on <code>public</code> folder inside <code>laravel</code> folder it gives me following error</p>
  
  <pre><code>Unhandled Exception
  
  Message:
  
  Call to undefined function Laravel\mcrypt_create_iv()
  Location:
  
  /Users/zafarsaleem/Sites/learning-laravel/laravel/crypter.php on line 36
  </code></pre>
  
  <p>Then checked whether mcrypts are installed in phpinfo(). They are not there. To install <code>mcrypt</code> I followed this <a href="http://www.glenscott.co.uk/blog/2011/08/29/install-mcrypt-php-extension-on-mac-os-x-lion/" rel="nofollow">link</a>. It worked until when I followed to <code>PHP Extension</code> title. When I downloaded <code>PHP 5.3.8 is now the default since Mac OS X 10.7.3</code> unpacked and when I issue <code>phpize</code> command it gives me this error</p>
  
  <pre><code>Cannot find config.m4. 
  Make sure that you run '/usr/bin/phpize' in the top level source directory of the module
  </code></pre>
  
  <p>What does this <code>top level source directory of the module means</code>? How can I make mcrypt install properly to make laravel work? Please help.</p>