Help installing static binary for wkhtmltopdf

前端 未结 4 503
感情败类
感情败类 2020-12-28 09:43

I am trying to use the static binary of wkhtmltopdf on Ubuntu server 10.0.4. The reason for is that it apparently has a built in modified QT that will allow me to run wkhtml

相关标签:
4条回答
  • 2020-12-28 09:49

    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 讨论(0)
  • 2020-12-28 09:50

    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!

    0 讨论(0)
  • 2020-12-28 09:58

    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.

    0 讨论(0)
  • 2020-12-28 10:09

    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.

    0 讨论(0)
提交回复
热议问题