title: Python PIL cannot locate my "libjpeg"
body: <p>I cannot use PIL because it cannot find my libjpeg!</p>
  
  <p>First, I installed PIL default. And when I ran the <code>selftest.py</code>, it gave me:</p>
  
  <pre><code>IOError: decoder jpeg not available 1
  items had failures:    1 of  57 in
  selftest.testimage
  ***Test Failed*** 1 failures.
  *** 1 tests of 57 failed.
  </code></pre>
  
  <p>Then, I followed instructions online to change PIL's <code>setup.py</code> to</p>
  
  <pre><code>JPEG_ROOT = "/usr/lib"
  </code></pre>
  
  <p>Because when I <code>locate libjpeg</code>, this is what I get:</p>
  
  <pre><code>locate libjpeg 
  /usr/lib/libjpeg.so.62
  /usr/lib/libjpeg.so.62.0.0
  /usr/lib64/libjpeg.so.62
  /usr/lib64/libjpeg.so.62.0.0
  /usr/share/doc/libjpeg-6b
  /usr/share/doc/libjpeg-6b/README
  /usr/share/doc/libjpeg-6b/usage.doc
  /var/cache/yum/base/packages/libjpeg-6b-37.i386.rpm
  /var/cache/yum/base/packages/libjpeg-6b-37.x86_64.rpm
  </code></pre>
  
  <p>So, I ran <code>setup.py install</code> again...and did <code>selftest.py</code>.
  And I still get the same error!</p>