Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save unknwon/1e4f96c336dc052a4473e62dfd70ac72 to your computer and use it in GitHub Desktop.
Save unknwon/1e4f96c336dc052a4473e62dfd70ac72 to your computer and use it in GitHub Desktop.
yum install -y libpng
yum install -y libjpeg
yum install -y openssl
yum install -y icu
yum install -y libX11
yum install -y libXext
yum install -y libXrender
yum install -y xorg-x11-fonts-Type1
yum install -y xorg-x11-fonts-75dpi
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2/wkhtmltox-0.12.2_linux-centos7-amd64.rpm
rpm -Uvh wkhtmltox-0.12.2_linux-centos7-amd64.rpm
---- or ----
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
unxz wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar -xvf wkhtmltox-0.12.4_linux-generic-amd64.tar
mv wkhtmltox/bin/* /usr/local/bin/
rm -rf wkhtmltox
rm -f wkhtmltox-0.12.4_linux-generic-amd64.tar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment