Help installing static binary for wkhtmltopdf

前端 未结 4 536
感情败类
感情败类 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: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!

提交回复
热议问题