如何在不编译的情况下安装wkhtmltopdf补丁qt? [英] How to install wkhtmltopdf patched qt without compiling?
问题描述
我正在为主机 Odoo 使用谷歌云实例,somo 报告打印为 pdf 正常,但其他自定义 paperformat 收到以下错误:
I'm using google cloud instance for host Odoo, somo reports print to pdf ok, but other with custom paperformat get the following error:
"开关--header-spacing,不支持使用unpatched qt,将被忽略.开关--header-html,不支持使用unpatched qt,将被忽略.开关--footer-html,不支持使用未打补丁的qt,将被忽略.QXcbConnection: 无法连接到显示"
"The switch --header-spacing, is not support using unpatched qt, and will be ignored.The switch --header-html, is not support using unpatched qt, and will be ignored.The switch --footer-html, is not support using unpatched qt, and will be ignored.QXcbConnection: Could not connect to display"
我用谷歌搜索,为了解决这个问题,我需要像这样编译 wkhtmltopdf:http://www.grobak.net/id/blog/how-fix-wkhtmltopdf-failed-error-code-6 但这个过程需要 3 小时,我正在构建一个脚本来在运行时安装 google 实例并带有 odoo 依赖项.
I google it, and to solve I need to compile wkhtmltopdf like this: http://www.grobak.net/id/blog/how-fix-wkhtmltopdf-failed-error-code-6 but this proccess need 3 hs and I'm building a script to install google instances on the run with odoo dependencies.
.deb 包的依赖关系被破坏
the .deb package have a dependency broken
有人知道其他解决方案吗?
Anyone know other solution?
推荐答案
我的系统配置是 Ubuntu 14.04 和 64 位.所以,我正在根据那个下载.
My system configuration is Ubuntu 14.04 and 64 bit. So, i am downloading according to that.
首先你必须检查你的系统操作系统名称
First you have to check your system OS name by
lsb_release -a
检查您的 Ubuntu Linux 操作系统架构是 32 位还是 64 位,打开终端并运行以下命令.
Check to see if your Ubuntu Linux operating system architecture is 32-bit or 64-bit, open up a terminal and run the following command below.
file /sbin/init
使用以下命令下载用 qt 打补丁的 wkhtmltopdf
Download wkhtmltopdf patched with qt using below command
sudo wget -P Downloads https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
在这里,将trusty"替换为您的操作系统名称,如果仅是 64 位,则保留amd64",否则将其更改为i386"并下载 deb 文件.
Here, replace "trusty" with your OS name and if 64 bit only then keep "amd64" like that , otherwise change it to "i386" and down load the deb file.
然后执行以下命令,
cd ~/Downloads
sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
现在,使用以下命令检查 wkhtmltopdf 版本,
Now, check wkhtmltopdf version with below command,
wkhtmltopdf -V
享受!!
这篇关于如何在不编译的情况下安装wkhtmltopdf补丁qt?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!