在CentOS 5.5 32位上运行wkhtmltopdf [英] Run wkhtmltopdf on CentOS 5.5 32bit

查看:164
本文介绍了在CentOS 5.5 32位上运行wkhtmltopdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在CentOS 5.5 32位版本上运行wkhtmltopdf,我正在VPS上运行该软件。不知何故我无法执行二进制文件,这就是我得到的:

I'm trying to run wkhtmltopdf on CentOS 5.5 32bit version, I'm running that software on a VPS. Somehow I cannot execute the binary, this is what I get:

-bash-3.2# ./wkhtmltopdf-i386 http://www.google.nl/ test.pdf
Segmentation fault

我还没有可能是问题的线索,该文件具有适当的所有者,并且其权限是777。我能想到的解决此问题的唯一方法是在VPS上安装X11软件包,我不确定是否会

I haven't got a clue to what the problem might be, the file has the proper owner and it's permissions are 777. The only thing I can think of making this problem go away is installing the X11 packages on my VPS, I'm not sure if that will solve the problem though.

编辑:安装了X11软件包,但仍然出现相同的错误。

Installed the X11 packages and I'm still getting the same error.

有任何想法吗?

推荐答案

我已经解决了,显然是在Windows上提取wkhtmltopdf-i386文件然后进行传输时通过FTP会损坏文件,从而导致分段错误错误。使用wget并下载+提取服务器上的文件即可解决该问题。

I've worked it out, apparently when extracting the wkhtmltopdf-i386 file on Windows and then transferring it via FTP it corrupts the file, resulting in the Segmentation fault error. The problem was solved using wget and downloading+extracting the file on the server.

这篇关于在CentOS 5.5 32位上运行wkhtmltopdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆