Skip to content

Instantly share code, notes, and snippets.

@lambdalisue
Created September 18, 2011 15:44
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save lambdalisue/1225180 to your computer and use it in GitHub Desktop.
Save lambdalisue/1225180 to your computer and use it in GitHub Desktop.
Ubuntu 11.04 Python Image Library (PIL) installation via pip patch
#!/bin/sh
# Ref: http://ubuntuforums.org/showthread.php?t=1751455
# Install required libs
yes | apt-get install build-essential python-dev libjpeg62-dev zlib1g-dev libfreetype6-dev liblcms1-dev
# Link to correct location
if [ -d /usr/lib/x86_64-linux-gnu ]; then
# Ubuntu 11.04 64bit
ln -sf /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib/
ln -sf /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/
ln -sf /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/
elif [ -d /usr/lib/i386-linux-gnu ]; then
ln -sf /usr/lib/i386-linux-gnu/libfreetype.so /usr/lib/
ln -sf /usr/lib/i386-linux-gnu/libz.so /usr/lib/
ln -sf /usr/lib/i386-linux-gnu/libjpeg.so /usr/lib/
fi
wget -q -O - https://raw.github.com/gist/1225180/patch.sh | sudo bash
@mupacif
Copy link

mupacif commented Mar 3, 2014

thank you Man!

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