Created
September 14, 2011 14:58
-
-
Save kvz/1216790 to your computer and use it in GitHub Desktop.
Installing wkhtmltopdf as static is faster & dependency free
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
arch=i386 | |
uname -m |grep 64 && arch=amd64 | |
[ -d /usr/local/bin/ ] || mkdir -p /usr/local/bin/ | |
wget -O /usr/local/bin/wkhtmltopdf.tar.bz2 http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-${arch}.tar.bz2 | |
cd /usr/local/bin/ | |
tar jxvf /usr/local/bin/wkhtmltopdf.tar.bz2 | |
mv wkhtmltopdf-${arch} wkhtmltopdf | |
chmod 755 wkhtmltopdf | |
cd - | |
wkhtmltopdf --help && echo "You're welcome Carl" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment