Skip to content

Instantly share code, notes, and snippets.

  • Save vmdao/5f596d585c23e3a0805ab10c49ac9793 to your computer and use it in GitHub Desktop.
Save vmdao/5f596d585c23e3a0805ab10c49ac9793 to your computer and use it in GitHub Desktop.
Installing wkhtmltopdf 0.12.4 - Ubuntu 16.04

You can check here for getting the latest version. Change the wget url to download newer versions.

$ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
$ tar -xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
$ cd wkhtmltox/bin/
$ sudo mv wkhtmltopdf /usr/bin/wkhtmltopdf
$ sudo mv wkhtmltoimage /usr/bin/wkhtmltoimage
$ sudo chmod a+x /usr/bin/wkhtmltopdf
$ sudo chmod a+x /usr/bin/wkhtmltoimage
@vmdao
Copy link
Author

vmdao commented Jul 8, 2018

You can check here for getting the latest version.
Change the wget url to download newer versions.
Version 0.12.5

$ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.trusty_i386.deb
$ dpkg -i  wkhtmltox_0.12.5-1.trusty_i386.deb
$ apt -f install

Check

$wkhtmltopdf --version

if have err same version libstdc++.so.6. maybe OS not install right version
You check version here libstdc or link official

GCC 4.9.0: libstdc++.so.6.0.20
GCC 5.1.0: libstdc++.so.6.0.21
GCC 6.1.0: libstdc++.so.6.0.22
GCC 7.1.0: libstdc++.so.6.0.23
GCC 7.2.0: libstdc++.so.6.0.24
GCC 8.0.0: libstdc++.so.6.0.25

And install right version

$sudo apt-get install software-properties-common 
$sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$sudo apt-get update
$sudo apt-get install gcc-5 g++-5 // with me version 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment