Skip to content

Instantly share code, notes, and snippets.

@bertrandom
Created October 12, 2011 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bertrandom/1281777 to your computer and use it in GitHub Desktop.
Save bertrandom/1281777 to your computer and use it in GitHub Desktop.
Patch for PIL to install on Ubuntu 11.04
--- setup.old 2011-10-12 16:37:50.034274363 +0000
+++ setup.py 2011-10-12 16:39:27.226276274 +0000
@@ -212,6 +212,7 @@
add_directory(include_dirs, "/usr/local/include")
add_directory(library_dirs, "/usr/lib")
+ add_directory(library_dirs, "/usr/lib/i386-linux-gnu")
add_directory(include_dirs, "/usr/include")
#
@bertrandom
Copy link
Author

Install python, pip, libjpeg, libfreetype:

apt-get install python-pip python-dev libjpeg-dev libjpeg62 libjpeg62-dev zlib1g-dev libfreetype6 libfreetype6-dev

Install PIL (Python Imaging Library):

mkdir /root/pil
cd /root/pil
pip install -I pil --no-install
cd /root/pil/build/pil/
curl -o pil.patch -fsSL https://raw.github.com/gist/1281777
patch setup.py < pil.patch
cd /root/pil
pip install -I pil --no-download

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment