title: how to enable pthreads on MAMP
body: <p>I'm using a Mac with OS X Mavericks, and running php scripts within MAMP.  Some of the php scripts I'm running require the use of <a href="http://us2.php.net/pthreads" rel="nofollow">pthreads</a>.</p>
  
  <p>Can anyone provide step-by-step instructions on installing or enabling pthreads on a Mac?</p>
  
  <p>I have Googled extensively and have found little-to-no documentation on this.  All I have found is that I may or may not have to recompile php from source, or maybe just add a couple flags to php.ini, or maybe I can just use pecl, etc.  In terminal, I tried <code>pecl install pthreads</code> and received this error:</p>
  
  <p>Cannot install, php_dir for channel "pecl.php.net" is not writeable by the current user</p>
  
  <p>I'm pretty much lost at this point.  I want to avoid switching to my Windows machine with WAMP if possible.</p>