Comment 2 for bug 997756

Revision history for this message
Benwah (benwah) wrote :

Ok so this bug has nothing to do with virtualenv, I ahve tried to simply build the python PIL package, and it still cannot find the required jpeg (and other) libraries.

To reproduce:

$ sudo apt-get install libjpeg62-dev zlib1g-dev libfreetype6-dev libpng12-dev python-dev
$ wget http://effbot.org/downloads/Imaging-1.1.7.tar.gz
$ tar xvzf Imaging-1.1.7.tar.gz
$ cd Imaging-1.1.7/
$ python setup.py build

Output:
...
    --------------------------------------------------------------------
    *** TKINTER support not available (Tcl/Tk 8.5 libraries needed)
    *** JPEG support not available
    *** ZLIB (PNG/ZIP) support not available
    *** FREETYPE2 support not available
    *** LITTLECMS support not available
    --------------------------------------------------------------------
...

How to fix:

$ ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
$ ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib
$ ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib

and then it builds with jpeg / png / freetype support.