title: Can't phpize or configure an extension in OS X 10.9 Mavericks
body: <p>I am trying to build the memcached extension on OS X 10.9 Mavericks for use with the built in PHP 5.4, initially I tried <code>pecl install memcached</code> but that threw the following.</p>
  
  <pre><code>checking for zlib location... configure: error: memcached support requires ZLIB. Use --with-zlib-dir=&lt;DIR&gt; to specify the prefix where ZLIB headers and library are located
  ERROR: `/private/tmp/pear/install/memcached/configure' failed
  </code></pre>
  
  <p>So I created a tmp directory and executed <code>pecl download memcached</code>, unzipped the code and cd'd to the appropriate directory. </p>
  
  <p>Trying to phpize it returned the following:</p>
  
  <pre><code>grep: /usr/include/php/main/php.h: No such file or directory
  grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
  grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
  Configuring for:
  PHP Api Version:        
  Zend Module Api No:     
  Zend Extension Api No:  
  </code></pre>
  
  <p>I had brew installed zlib a while ago and pointed ./configure at my installation.
  <code>./configure --with-zlib-dir=/usr/local/Cellar/zlib/1.2.8</code> I was greeted with the following error message:</p>
  
  <pre><code>checking for session includes... configure: error: Cannot find php_session.h
  </code></pre>
  
  <p>So now I'm wondering the best course of action here... <code>/usr/include/</code> doesn't exist at all... is this a Mavericks thing? I don't remember having this problem in 10.8 at all.</p>
  
  <p>I could try brew installing <code>php-devel</code> but I presume that isn't going to be the right version of what I need? Any help would be greatly appreciated here</p>
  
  <h3>Update</h3>
  
  <p><code>locate php_session.h</code> reveals</p>
  
  <p><code>/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/php/ext/session/php_session.h</code></p>
  
  <p>should I just <code>ln -s</code> this to the expected location or is there some way to do this via XCode? I have the command line tools installed...</p>