title: dyld: Library not loaded: /usr/local/lib/libjpeg.8.dylib - homebrew php
body: <p>PHP was not working for me as I was encountering <a href="https://stackoverflow.com/questions/32702845/dyld-library-not-loaded-usr-local-lib-libpng-3-dylib-when-using-php">this libpng issue</a>, so I reinstalled a new version with Homebrew.  </p>
  
  <p>However, I'm getting a similar error with <code>libjpeg</code> this time:</p>
  
  <pre><code>$ php -v
  dyld: Library not loaded: /usr/local/lib/libjpeg.8.dylib
    Referenced from: /usr/local/bin/php
    Reason: image not found
  Trace/BPT trap: 5
  </code></pre>
  
  <p>Any suggestions?</p>