title: Using built-in libxml2 on Mac 10.6.x
body: <p>I understand that Mac OS 10.6.x contains a built-in version of libxml2. </p>
  
  <p>I feel pretty stupid here, but then why doesn't this work?</p>
  
  <pre><code>python -c "import libxml2"
  </code></pre>
  
  <p>Is there some step I'm missing that makes the library accessible in Python?</p>
  
  <pre><code>which python
  </code></pre>
  
  <p>...returns: </p>
  
  <pre><code>/usr/bin/python2.6 -&gt; ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
  </code></pre>
  
  <p>... so it looks to me like I'm using the default python.</p>
  
  <p>I was able to find lots of older instructions for installing new versions of libxml2 on older versions of Mac OS, but nothing about just using what it comes with on 10.6.x. I prefer to use the built-in stuff instead of MacPorts if possible.</p>