Skip to content

Instantly share code, notes, and snippets.

@dlo
Forked from lambdalisue/patch.sh
Created January 27, 2015 20:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlo/cd49f1f6113562e29cc5 to your computer and use it in GitHub Desktop.
Save dlo/cd49f1f6113562e29cc5 to your computer and use it in GitHub Desktop.
#!/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
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