Created
September 18, 2011 15:44
-
-
Save lambdalisue/1225180 to your computer and use it in GitHub Desktop.
Ubuntu 11.04 Python Image Library (PIL) installation via pip patch
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
#!/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 |
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
wget -q -O - https://raw.github.com/gist/1225180/patch.sh | sudo bash |
Should be updated to
wget -q -O - https://gist.github.com/lambdalisue/1225180/raw/eb87ceaa7277078f17f76a89a066101ba2254391/patch.sh | sudo bash
GitHub changed their direct links for raw files.
thank you Man!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I concur. Awesome.