Skip to content

Instantly share code, notes, and snippets.

@zuhairkareem
Last active February 14, 2018 12:04
Show Gist options
  • Save zuhairkareem/119643485d994d60edec8a9a299ab648 to your computer and use it in GitHub Desktop.
Save zuhairkareem/119643485d994d60edec8a9a299ab648 to your computer and use it in GitHub Desktop.
How to install wkhtmltopdf in Ubuntu 16.04 to use it with Drupal 7
cd ~
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar -xJf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
sudo chown root:root wkhtmltox
sudo cp wkhtmltox/bin/wkhtmlto* /usr/bin

QSslsocket cannot resolve error. (Refer - wkhtmltopdf/wkhtmltopdf#3001)

sudo apt install libssl-dev=1.0.2g-1ubuntu4.8

Or if above command not working errors

sudo apt-get -f install
sudo apt-get remove libssl-dev
sudo apt autoremove
sudo apt-get install libssl-dev=1.0.2g-1ubuntu4.10
// To check the version
sudo apt-cache policy libssl-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment