-
-
Save lukrizal/e5f8fea4ce558e6b0ec8 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
#!/usr/bin/env bash | |
sudo yum install -y fontconfig freetype libpng libjpeg libX11 libXext libXrender xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi | |
wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.2.1/wkhtmltox-0.12.2.1_linux-centos6-amd64.rpm | |
sudo rpm -Uvh wkhtmltox-0.12.2.1_linux-centos6-amd64.rpm |
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
#!/usr/bin/env bash | |
cd ~ | |
# Check for any updates | |
sudo apt-get update | |
# I managed to get the compiled version with patched QT working on ubuntu precise 64bit (12.04 LTS) and thought I'd share my bash history in the hopes it might spare others some trouble shooting. | |
# Also note that this install process takes rather long, you might want to consider running it in a screen or something | |
# you will be needing git if you haven't got it yet | |
sudo apt-get install git-core | |
# install qt dependencies, see http://qt-project.org/doc/qt-4.8/requirements-x11.html | |
sudo apt-get install libfontconfig1-dev libfreetype6-dev libx11-dev libxcursor-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxrandr-dev libxrender-dev | |
# as per installation instructions, install dependencies for wkhtmltopdf | |
sudo apt-get install openssl build-essential xorg libssl-dev libxrender-dev | |
# clone the repo | |
git clone --recursive https://github.com/wkhtmltopdf/wkhtmltopdf.git wkhtmltopdf | |
cd wkhtmltopdf | |
sudo scripts/build.py setup-schroot-trusty | |
scripts/build.py trusty-amd64 | |
sudo dpkg -i static-build/wkhtmltox-0.12.3-dev-3b4f21b_linux-trusty-amd64.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment