title: How To Install PECL YAML Extension on Mac?
body: <p>My goals is to be able to use the PHP functions for parsing YAML detailed in the PHP docs:
  <a href="http://php.net/manual/en/ref.yaml.php" rel="nofollow noreferrer">http://php.net/manual/en/ref.yaml.php</a></p>
  
  <p>To install the PECL yaml extension I've opened Terminal and typed:</p>
  
  <pre><code>brew install libyaml
  </code></pre>
  
  <p>Then</p>
  
  <pre><code>sudo /usr/local/php5/bin/pecl install pecl_http
  </code></pre>
  
  <p>Then</p>
  
  <pre><code>sudo /usr/local/php5/bin/pecl install yaml
  </code></pre>
  
  <p>But I think it fails to install the PECL yaml extension. It says: </p>
  
  <pre><code>3 warnings and 16 errors generated.
  make: *** [yaml.lo] Error 1
  ERROR: `make' failed
  </code></pre>
  
  <p>And when I try to use <code>yaml_parse_file()</code> in my program, it says:</p>
  
  <pre><code>Fatal error: Call to undefined function yaml_parse_file()
  </code></pre>
  
  <p>How do I properly install the PECL yaml extension so I can use the PHP functions for parsing YAML?</p>