无法在 ubuntu 16.04 中安装带有补丁 qt 的 wkhtmltopdf [英] unable to install wkhtmltopdf with patched qt in ubuntu 16.04
问题描述
带有补丁 qt pkg 的 wkhtmltopdf 不适用于 ubuntu 16.04.所以我安装了 14.04 pkg,它是在没有补丁 qt 的情况下安装的,但它需要带有补丁 qt 的补丁.我也尝试过静态版本,但它提供了一些编译错误
wkhtmltopdf
的修补版本不在 Ubuntu 存储库中.如果需要,您可以从项目网站下载.但是他们仍然没有用于 Xenial Xerus 的 .deb
文件,因此您需要下载二进制文件并手动安装依赖项(libxrender1 fontconfig xvfb
).>
这是从项目网站安装补丁版本的脚本:
sudo apt-get 更新sudo apt-get install libxrender1 fontconfig xvfbwget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz -P/tmp/cd/选择/须藤焦油 xf/tmp/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz须藤 ln -s/opt/wkhtmltox/bin/wkhtmltopdf/usr/local/bin/wkhtmltopdf
编辑 [16/06/2017]:由于服务器不稳定,wkhtmltopdf 版本已移至 GitHub.我已经更新了我的答案,以提供下载最新版本的正确路径.
wkhtmltopdf with patched qt pkg is not available for ubuntu 16.04 .so i am install 14.04 pkg which is install without patched qt but it need it with patched qt. I also tried with static version but it give some compilation error
The patched version of wkhtmltopdf
is not present in the Ubuntu repository. You can download it from the project website if you want. But they still don't have a .deb
file for Xenial Xerus, so you need to download the binary file and install the dependencies (libxrender1 fontconfig xvfb
) manually.
Here is a script that installs the patched version from the project website:
sudo apt-get update
sudo apt-get install libxrender1 fontconfig xvfb
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz -P /tmp/
cd /opt/
sudo tar xf /tmp/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
sudo ln -s /opt/wkhtmltox/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf
Edit [16/06/2017]: wkhtmltopdf releases were moved to GitHub due to instability of their servers. I've updated my answer to provide the right path to download the latest release.
这篇关于无法在 ubuntu 16.04 中安装带有补丁 qt 的 wkhtmltopdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!