-
-
Save dlo/cd49f1f6113562e29cc5 to your computer and use it in GitHub Desktop.
This file contains 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 | |
apt-get -y 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 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://gist.githubusercontent.com/dlo/cd49f1f6113562e29cc5/raw/3436b4276262260122858092111f2c26f7ec72b7/patch.sh | sudo bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment