Run wkhtmltopdf on CentOS 5.5 32bit

对着背影说爱祢 提交于 2020-02-06 15:45:08

问题


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

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.

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

Any ideas?


回答1:


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.




回答2:


Happened to me and got it fixed, same thing you did.

http://code.google.com/p/wkhtmltopdf/issues/detail?id=289



来源:https://stackoverflow.com/questions/4986632/run-wkhtmltopdf-on-centos-5-5-32bit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!