Last active
October 26, 2022 01:04
-
-
Save paulsturgess/cfe1a59c7c03f1504c879d45787699f5 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
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 |
For the second option, use:
Thanks @paulsturgess! Maybe you can update your repo with this new url?
First option worked for me! (CentOS)
Do the yum install first! followed by this one below.
-> sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm
lastly, this one.
-> sudo rpm -Uvh wkhtmltox-0.12.5-1.centos7.x86_64.rpm
*you can check your /usr/local/bin the wkhtmltopdf is there :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nothing seems to work for me. I always get: 404 Not Found