Notes on PIL install for VM - mozilla/source GitHub Wiki
I tried a simple pip install on the VM, but found that PIL installed without jpeg support that way. So I backed out, and essentially followed the pattern described here:
First make sure you have libjpeg installed for JPEG handling
$ curl -O http://www.ijg.org/files/jpegsrc.v8c.tar.gz
$ tar zxvf jpegsrc.v8c.tar.gz
$ cd jpeg-8c/
$ ./configure
$ make
$ sudo make install
Then I use pip to install PIL
$ sudo pip install PIL
In line 1 (and thereafter), I went with the latest version of libjpeg available from http://www.ijg.org/files/, which as of September 2012 was jpegsrc.v8d.tar.gz.
I discovered that make
wasn't installed on the box, so I had to yum install make
to get that going. After that, libjpeg installed as expected, and a pip install PIL
worked properly as well:
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version 1.1.7
platform linux2 2.6.6 (r266:84292, Jun 18 2012, 14:18:47)
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)]
--------------------------------------------------------------------
*** TKINTER support not available (Tcl/Tk 8.5 libraries needed)
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
*** FREETYPE2 support not available
*** LITTLECMS support not available
The jpeg and png support is really all we need for sorl-thumbnail, so I think we should be good to go here.