Help installing static binary for wkhtmltopdf

时光怂恿深爱的人放手 提交于 2019-11-30 02:41:43
deb

I was having the same problem. I removed the existing wkhtmltopdf and followed the steps below and the installation worked.

First, installing dependencies

sudo aptitude install openssl build-essential xorg libssl-dev

for 64-bit OS

wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.2-static-amd64.tar.bz2

tar xvjf wkhtmltopdf-0.9.2-static-amd64.tar.bz2

chown root:root wkhtmltopdf-amd64

mv wkhtmltopdf-amd64 /usr/bin/wkhtmltopdf

The only difference is that I put it in /usr/local/bin/wkhtmltopdf.

I hope this helps!

Following deb's answer got it working for me on Ubuntu 10.04 64bit - thanks!

Although rather than downloading 0.9.2 as per deb's instructions, I would suggest people download the latest version by:

  1. Go to http://code.google.com/p/wkhtmltopdf/downloads/list
  2. Download the latest version of wkhtmltopdf-[version number]-static-amd64.tar.bz2

At this time, the latest 64bit is http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1-static-amd64.tar.bz2.

In my debian server trying to run wkhtmltopdf-i386 lead to same blank prompt.

Non-static (with non-patched QT) version of wkhtmltopdf installed with "aptitude install wkhtmltopdf" is worked.

Problem solved by switching to wkhtmltopdf-amd64, server was a 64 bit and i missed it.

After that, wkhtmltopdf-amd64 says 'libxrender shared library not found', this problem was solved by "aptitude install xorg"

0.11.0_rc1 seems to be buggy.
It keeps throwing the error "Cannot create a QPixmap when no GUI is being used".
Reverting to 0.9.9 worked for me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!