Installing PIL 1.1.6 on OS X Leopard (10.5)
March 31st, 2008 at 4:51 pm (Programming)
What a headache. After a couple of hours of googleing, it looks like this is the way you should install PIL on OS X:
Download libjpeg: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
At the time of this writing the libjpeg homepage is down.
Next compile it:
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .
./configure --enable-shared --enable-static
make
sudo make install
sudo ranlib /usr/local/lib/libjpeg.a
Edit: If sudo make install fails, mkdir the directories that make is trying to install the files into. There are a couple of man directories and a bin directory.
Now download PIL: http://effbot.org/downloads/Imaging-1.1.6.tar.gz
and compile it
tar xvzf Imaging-1.1.6.tar.gz
cd Imaging-1.1.6
sudo python setup.py install
Whew… what a mess.
Greg Sadetsky said,
September 25, 2008 at 1:26 pm
Thanks!
PIL 1.1.6 unter Mac OS X « Oliver Andrich said,
September 29, 2008 at 2:09 pm
[...] X installieren kann, wenn man sich den MacPorts verweigert. Die bisher beste Anleitung gibt es von Jason. Leider hat auch diese Anleitung in meinen Augen einen Fehler, wenn auch nur einen sehr [...]
Bear said,
November 7, 2008 at 10:27 am
Thanks a lot !
It worked just perfectly.
Bret said,
January 10, 2009 at 8:22 pm
Thanks a lot! BTW, the new link for Imaging is http://effbot.org/media/downloads/Imaging-1.1.6.tar.gz
Zach Holmquist said,
June 18, 2009 at 10:05 pm
Jason! I <3 You for posting this!
After getting errors, and venting this to you, you led me to the light . . . before make install for the libjpeg :
sudo mkdir /usr/local/lib
sudo mkdir -p /usr/local/man/man1/
To make sure the install worked, in Terminal:
python
import Image
If no errors! Success!
Thanks again dude, you are the best!