Created
August 28, 2009 17:19
-
-
Save brosner/177108 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| All curl downloads occurred in ~/Sources. | |
| Get PIL:: | |
| curl -O http://effbot.org/media/downloads/Imaging-1.1.6.tar.gz | |
| tar zxvf Imaging-1.1.6.tar.gz | |
| cd Imaging-1.1.6 | |
| python setup.py build | |
| Notice once the build has finished you will see the following:: | |
| -------------------------------------------------------------------- | |
| PIL 1.1.6 BUILD SUMMARY | |
| -------------------------------------------------------------------- | |
| version 1.1.6 | |
| platform darwin 2.5.1 (r251:54863, Jun 17 2009, 20:37:34) | |
| [GCC 4.0.1 (Apple Inc. build 5465)] | |
| -------------------------------------------------------------------- | |
| --- TKINTER support ok | |
| *** JPEG support not available | |
| --- ZLIB (PNG/ZIP) support ok | |
| *** FREETYPE2 support not available | |
| -------------------------------------------------------------------- | |
| PIL was unable to build with JPEG support. You need to do this on your own:: | |
| curl -O http://www.ijg.org/files/jpegsrc.v7.tar.gz | |
| tar zxvf jpegsrc.v7.tar.gz | |
| cd jpeg-7/ | |
| ./configure | |
| make | |
| sudo make install | |
| Astute readers will note we used v7 of the JPEG libraries. I've noticed that | |
| now you only need to run `make install` to get the headers/libraries to | |
| install. In v6 they were an extra step (or two). | |
| Back to PIL:: | |
| python setup.py clean | |
| rm -rf build | |
| python setup.py build | |
| And now:: | |
| -------------------------------------------------------------------- | |
| PIL 1.1.6 BUILD SUMMARY | |
| -------------------------------------------------------------------- | |
| version 1.1.6 | |
| platform darwin 2.5.1 (r251:54863, Jun 17 2009, 20:37:34) | |
| [GCC 4.0.1 (Apple Inc. build 5465)] | |
| -------------------------------------------------------------------- | |
| --- TKINTER support ok | |
| --- JPEG support ok | |
| --- ZLIB (PNG/ZIP) support ok | |
| *** FREETYPE2 support not available | |
| -------------------------------------------------------------------- | |
| Rock on. Now install it:: | |
| sudo python setup.py install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment