zlib suporte para PIL não funcionará

0

Estou tentando instalar o PIL de acordo com suas instruções no debian, mas não consigo descobrir como consertar este bit:

Eu recebo --- suporte a ZLIB (PNG / ZIP) disponível em build_ext e * suporte a ZLIB (PNG / ZIP) não instalado no autoteste

o que estou perdendo?

root@portman:~/dist/Imaging-1.1.7# python setup.py build_ext -i
running build_ext
--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version       1.1.7
platform      linux2 2.7.2+ (default, Dec  1 2011, 01:55:02)
              [GCC 4.6.2]
--------------------------------------------------------------------
*** TKINTER support not available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
--- LITTLECMS support available
--------------------------------------------------------------------
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.

To check the build, run the selftest.py script.
root@portman:~/dist/Imaging-1.1.7# python selftest.py
--------------------------------------------------------------------
PIL 1.1.7 TEST SUMMARY
--------------------------------------------------------------------
Python modules loaded from ./PIL
Binary modules loaded from ./PIL
--------------------------------------------------------------------
--- PIL CORE support ok
*** TKINTER support not installed
--- JPEG support ok
*** ZLIB (PNG/ZIP) support not installed
--- FREETYPE2 support ok
--- LITTLECMS support ok
--------------------------------------------------------------------
Running selftest:
--- 57 tests passed.
    
por abolotnov 07.03.2012 / 12:13

1 resposta

1

O PIL já está empacotado para o Debian no python-imaging package: apt-get install python-imaging .

Se você realmente quiser instalá-lo manualmente, talvez seja necessário instalar o pacote zlib1g-dev.

    
por 07.03.2012 / 14:53