ubuntu-python-easy_install-pil-does-not-install-zlib-support

JSON

rev 12  |  foxhop  |  1355525323000  |  JSON

rev 11
rev 12
65------------65------------
6666
t67.. code-block: basht67.. code-block:: bash
6868
69 apt-get install zlib1g-dev69 apt-get install zlib1g-dev
rev 11  |  foxhop  |  1355525301000  |  JSON

rev 10
rev 11
6060
61You might need to delete the PIL egg from your pythons site-packages directory a61You might need to delete the PIL egg from your pythons site-packages directory a
>nd attempt to re-install the package>nd attempt to re-install the package
tt62 
63 
64ubuntu
65------------
66 
67.. code-block: bash
68 
69 apt-get install zlib1g-dev
70 
71 
rev 10  |  foxhop  |  1317336278000  |  JSON

rev 9
rev 10
t1ubuntu python easy_install pil does not install zlib or png supportt1Ubuntu Python easy_install PIL does not install zlib or png support
2========================================================================2========================================================================
33
rev 9  |  foxhop  |  1317332160000  |  JSON

rev 8
rev 9
t1ubuntu python easy_install pil does not install zlib supportt1ubuntu python easy_install pil does not install zlib or png support
2==================================================================2========================================================================
33
4I was getting the following error even though the zlib dev libraries were alread4I was getting the following error even though the zlib dev libraries were alread
>y installed correctly. >y installed correctly. 
rev 8  |  foxhop  |  1317332058000  |  JSON

rev 7
rev 8
54      sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib54      sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib
5555
tt56 
57 
58Notes
59----------------
60 
61You might need to delete the PIL egg from your pythons site-packages directory a
 >nd attempt to re-install the package
rev 7  |  foxhop  |  1317331968000  |  JSON

rev 6
rev 7
34-------------34-------------
3535
n361. find the location of your systems libz.son361. **Find the location of your systems libz.so**
3737
38  .. code-block:: bash   38  .. code-block:: bash   
40    find . -name libz.so40    find . -name libz.so
4141
n422. create a soft link from /usr/lib to the location of libz.son422. **Create a soft link from libz.so to /usr/lib**
43  
44   Ubuntu 32bit:
4345
n44  .. code-block:: bashn46    .. code-block:: bash
4547
n46    sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/libn48      sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib
4749
tt50   Ubuntu 64bit:
51 
52    .. code-block:: bash
53 
54      sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib
55 
rev 6  |  foxhop  |  1317331761000  |  JSON

rev 5
rev 6
3131
3232
t33Stepst33How to fix
34-----------34-------------
3535
361. find the location of your systems libz.so361. find the location of your systems libz.so
rev 5  |  foxhop  |  1317331748000  |  JSON

rev 4
rev 5
2==================================================================2==================================================================
33
n4This happened to me even though the zlib dev libraries were installed.. apparentn4I was getting the following error even though the zlib dev libraries were alread
>ly PIL setup.py doesn't know how to find libz.so.>y installed correctly. 
55
n6PIL expects libz.so to be located in /usr/lib not /usr/lib/i386-linux-gnu/libz.sn6.. code-block:: python
>o 
77
t8To fix this create a link!t8 --------------------------------------------------------------------
9 PIL 1.1.7 SETUP SUMMARY
10 --------------------------------------------------------------------
11 version       1.1.7
12 platform      linux2 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
13               [GCC 4.5.2]
14 --------------------------------------------------------------------
15 *** TKINTER support not available
16 *** JPEG support not available
17 *** ZLIB (PNG/ZIP) support not available
18 *** FREETYPE2 support not available
19 *** LITTLECMS support not available
20 --------------------------------------------------------------------
21 To add a missing option, make sure you have the required
22 library, and set the corresponding ROOT variable in the
23 setup.py script.
24 
25Apparently PIL setup.py doesn't know how to find libz.so.
26 
27PIL expects libz.so to be located in **/usr/lib** not **/usr/lib/i386-linux-gnu/
 >libz.so**
28 
29I fixed this issue by building a link to were PIL setup.py looks and where the l
 >ibrary really exists!
30 
31 
932
10Steps33Steps
rev 4  |  foxhop  |  1317331458000  |  JSON

rev 3
rev 4
11-----------11-----------
1212
n13#. find the location of your systems libz.son131. find the location of your systems libz.so
1414
15  .. code-block:: bash   15  .. code-block:: bash   
17    find . -name libz.so17    find . -name libz.so
1818
t19#. create a soft link from /usr/lib to the location of libz.sot192. create a soft link from /usr/lib to the location of libz.so
2020
21  .. code-block:: bash21  .. code-block:: bash
rev 3  |  foxhop  |  1317331448000  |  JSON

rev 2
rev 3
8To fix this create a link!8To fix this create a link!
99
tt10Steps
11-----------
12 
13#. find the location of your systems libz.so
14 
15  .. code-block:: bash   
16 
17    find . -name libz.so
18 
19#. create a soft link from /usr/lib to the location of libz.so
20 
21  .. code-block:: bash
22 
10sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib23    sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib
24 
rev 2  |  foxhop  |  1317330870000  |  JSON

rev 1
rev 2
4This happened to me even though the zlib dev libraries were installed.. apparent4This happened to me even though the zlib dev libraries were installed.. apparent
>ly PIL setup.py doesn't know how to find libz.so.>ly PIL setup.py doesn't know how to find libz.so.
55
t6PIL expects libz.so to be located in /usr/lib not s/usr/lib/i386-linux-gnu/libz.t6PIL expects libz.so to be located in /usr/lib not /usr/lib/i386-linux-gnu/libz.s
>so>o
77
8To fix this create a link!8To fix this create a link!
rev 1  |  foxhop  |  1306601079000  |  JSON

empty
rev 1
tt1ubuntu python easy_install pil does not install zlib support
2==================================================================
3 
4This happened to me even though the zlib dev libraries were installed.. apparent
 >ly PIL setup.py doesn't know how to find libz.so.
5 
6PIL expects libz.so to be located in /usr/lib not s/usr/lib/i386-linux-gnu/libz.
 >so
7 
8To fix this create a link!
9 
10sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib