|
|
| ------------ | | ------------ |
| | | |
| t | .. code-block: bash | t | .. code-block:: bash |
| | | |
| apt-get install zlib1g-dev | | apt-get install zlib1g-dev |
|
|
| | | |
| You might need to delete the PIL egg from your pythons site-packages directory a | | You 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 |
| t | | t | |
| | | |
| | | ubuntu |
| | | ------------ |
| | | |
| | | .. code-block: bash |
| | | |
| | | apt-get install zlib1g-dev |
| | | |
| | | |
|
|
| t | ubuntu python easy_install pil does not install zlib or png support | t | Ubuntu Python easy_install PIL does not install zlib or png support |
| ======================================================================== | | ======================================================================== |
| | | |
|
|
| t | ubuntu python easy_install pil does not install zlib support | t | ubuntu python easy_install pil does not install zlib or png support |
| ================================================================== | | ======================================================================== |
| | | |
| I was getting the following error even though the zlib dev libraries were alread | | I was getting the following error even though the zlib dev libraries were alread |
| y installed correctly. | | y installed correctly. |
|
|
| sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib | | sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib |
| | | |
| t | | t | |
| | | |
| | | Notes |
| | | ---------------- |
| | | |
| | | You might need to delete the PIL egg from your pythons site-packages directory a |
| | | nd attempt to re-install the package |
|
|
| ------------- | | ------------- |
| | | |
| n | 1. find the location of your systems libz.so | n | 1. **Find the location of your systems libz.so** |
| | | |
| .. code-block:: bash | | .. code-block:: bash |
| find . -name libz.so | | find . -name libz.so |
| | | |
| n | 2. create a soft link from /usr/lib to the location of libz.so | n | 2. **Create a soft link from libz.so to /usr/lib** |
| | | |
| | | Ubuntu 32bit: |
| | | |
| n | .. code-block:: bash | n | .. code-block:: bash |
| | | |
| n | sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib | n | sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib |
| | | |
| t | | t | Ubuntu 64bit: |
| | | |
| | | .. code-block:: bash |
| | | |
| | | sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib |
| | | |
|
|
| | | |
| | | |
| t | Steps | t | How to fix |
| ----------- | | ------------- |
| | | |
| 1. find the location of your systems libz.so | | 1. find the location of your systems libz.so |
|
|
| ================================================================== | | ================================================================== |
| | | |
| n | This happened to me even though the zlib dev libraries were installed.. apparent | n | I 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. |
| | | |
| n | PIL expects libz.so to be located in /usr/lib not /usr/lib/i386-linux-gnu/libz.s | n | .. code-block:: python |
| o | | |
| | | |
| t | To fix this create a link! | t | -------------------------------------------------------------------- |
| | | PIL 1.1.7 SETUP SUMMARY |
| | | -------------------------------------------------------------------- |
| | | version 1.1.7 |
| | | platform linux2 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) |
| | | [GCC 4.5.2] |
| | | -------------------------------------------------------------------- |
| | | *** TKINTER support not available |
| | | *** JPEG support not available |
| | | *** ZLIB (PNG/ZIP) support not available |
| | | *** FREETYPE2 support not available |
| | | *** LITTLECMS support not available |
| | | -------------------------------------------------------------------- |
| | | To add a missing option, make sure you have the required |
| | | library, and set the corresponding ROOT variable in the |
| | | setup.py script. |
| | | |
| | | Apparently PIL setup.py doesn't know how to find libz.so. |
| | | |
| | | PIL expects libz.so to be located in **/usr/lib** not **/usr/lib/i386-linux-gnu/ |
| | | libz.so** |
| | | |
| | | I fixed this issue by building a link to were PIL setup.py looks and where the l |
| | | ibrary really exists! |
| | | |
| | | |
| | | |
| Steps | | Steps |
|
|
| ----------- | | ----------- |
| | | |
| n | #. find the location of your systems libz.so | n | 1. find the location of your systems libz.so |
| | | |
| .. code-block:: bash | | .. code-block:: bash |
| find . -name libz.so | | find . -name libz.so |
| | | |
| t | #. create a soft link from /usr/lib to the location of libz.so | t | 2. create a soft link from /usr/lib to the location of libz.so |
| | | |
| .. code-block:: bash | | .. code-block:: bash |
|
|
| To fix this create a link! | | To fix this create a link! |
| | | |
| t | | t | Steps |
| | | ----------- |
| | | |
| | | #. find the location of your systems libz.so |
| | | |
| | | .. code-block:: bash |
| | | |
| | | find . -name libz.so |
| | | |
| | | #. create a soft link from /usr/lib to the location of libz.so |
| | | |
| | | .. code-block:: bash |
| | | |
| sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib | | sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib |
| | | |
|
|
| This happened to me even though the zlib dev libraries were installed.. apparent | | This 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. |
| | | |
| t | PIL expects libz.so to be located in /usr/lib not s/usr/lib/i386-linux-gnu/libz. | t | PIL expects libz.so to be located in /usr/lib not /usr/lib/i386-linux-gnu/libz.s |
| so | | o |
| | | |
| To fix this create a link! | | To fix this create a link! |
|
|
| t | | t | ubuntu python easy_install pil does not install zlib support |
| | | ================================================================== |
| | | |
| | | This happened to me even though the zlib dev libraries were installed.. apparent |
| | | ly PIL setup.py doesn't know how to find libz.so. |
| | | |
| | | PIL expects libz.so to be located in /usr/lib not s/usr/lib/i386-linux-gnu/libz. |
| | | so |
| | | |
| | | To fix this create a link! |
| | | |
| | | sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib |