title: How to install PIL with ZIP, JPEG, etc. on Ubuntu 11.10
body: <p>I am trying to be able to import png, which I believe is from the PIL. I would also prefer if JPEG and the others were also working</p>
  
  <p>I am running Ubuntu 11.10.  </p>
  
  <p>now from <a href="http://jj.isgeek.net/2011/09/install-pil-with-jpeg-support-on-ubuntu-oneiric-64bits/" rel="nofollow noreferrer">http://jj.isgeek.net/2011/09/install-pil-with-jpeg-support-on-ubuntu-oneiric-64bits/</a><br>
  i have figured a few things out.   </p>
  
  <p>I tried </p>
  
  <pre><code>$ sudo apt-get install libjpeg libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev  
  pip install PIL  
  sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib  
  sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib  
  sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib  
  pip install -U PIL  
  </code></pre>
  
  <p>where all of his/her JPEG, ZLIB, FREETYPE2 were supported mine said support
  not installed  </p>
  
  <p>I also went to <a href="https://stackoverflow.com/questions/9225514/how-to-install-pil-in-ubuntu-11-04">How to install PIL in Ubuntu 11.04?</a> and I tried<br>
      <code>sudo apt-get install python imaging</code> then going through all of the <code>setup.py and</code>selftest.py`, but still it wasn't working<br>
  I went on to try from <a href="https://stackoverflow.com/questions/8479344/pil-encoder-jpeg-not-available">PIL encoder jpeg not available</a>. I downloaded the source files from the pythonware.com and moved is to usr/lib using mv
  then, per the stackoverflow instructions, i tried adding a line after line 213:  </p>
  
  <pre><code>add_directory(library_dirs, "usr/lib")  
  sudo python setupt.py install  
  python selftest.py  
  </code></pre>
  
  <p>but still JPEG, ZLIB, FREETYPE2 were 'support not installed, but now there was another line that said LITTLECMS support not installed.  </p>
  
  <p>please help me sort this out.  </p>