HOWTO get pil jpeg running on osx

From Chaos

Jump to: navigation, search
This article is part of the HOWTO series.

Summary

I've inlcuded the steps below to enable support with JPEG + PIL (zlib support seemed to work out of the box without any special tweaks). Please note, this ONLY covers installing PIL + JPEG, and no further libraries. I did this because PIL + JPEG was the hardest to get working.

Details

1. Get the latest Python Imaging Library and JPEG Libraries.
2. Untar them, and 'cd' to the JPEG source directory.
3. Run the following commands:

./configure
make
make install-lib
make install

4. 'cd' to the Imaging source directory, and then 'cd' to libImaging.
5. Run './configure', and make double sure the single check for 'jpeg' comes up as 'yes'. If it does not, JPEG was not installed correctly.
6. Run 'make', and then 'cd ../'.
7. Then run the following where <instancename> is the name of the instance you wish to install PIL support to:

ranlib libImaging/libImaging.a
/Applications/Plone2/Tools/pysetup <instancename>

8. Note: If you get some 'permission denied' errors, make sure to 'chown -R plone:plone /Applications/Plone2/' (or whomever your plone user/group is).

Personal tools
Sponsored Links