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

查看:48
本文介绍了在 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 传输它时,它会损坏文件,导致 Segmentation fault错误.使用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天全站免登陆