fink install libjpeg
curl -O http://effbot.org/media/downloads/Imaging-1.1.6.tar.gz
tar -xzf Imaging-1.1.6.tar.gz
cd Imaging-1.1.6
sudo python setup.py install
And that's it! Reader Comments:
Hi There,
If you do not use “fink” for whatever reason, and use “maport” instead, then do the following:
port install gd2
The gd2 would install a number of the graphics lib, including libjpeg and libpng. you will find them in /opt/local/lib
Hi Colby, Thanks again for these instructions. Worked great on my Intel macs and then finally, finally, on my PPC. The trick was that even though it didn’t work before, complete removal of the previous install attempt as well as the uncompressed Imaging-1.1.6 folder is needed. Also, before installing PIL, I edited the JPEG_ROOT in setup.py to equal “/sw/lib” where the libjped had been put by fink.
Oh man! thanks so much for posting this. I was about to tear my hair out. FYI, I’ve tested these exact instructions with 10.6 (snow leopard) and they work flawlessly there as well.
I was trying to manually install libjpeg, then manually install Imaging-1.1.6 ... apparently fink knows something about OS X’s library paths that configure doesn’t…
I had to set
JPEG_ROOT = ”/sw/lib/libjpeg.dylib”
in the setup.py file.
http://kylefox.ca/blog/2009/jan/11/how-install-pil-libjpeg-mac-os-x-105/
I was trying to manually install libjpeg, then manually install Imaging-1.1.6 ... apparently fink knows something about OS X’s library paths that configure doesn’t
Thank you so much for this. I spent over 2 hours trying to get these two to install on my mac to no avail but your instructions worked flawlessly
G