开发者

Run wkhtmltopdf on CentOS 5.5 32bit

开发者 https://www.devze.com 2023-02-10 10:40 出处:网络
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:

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
Segmentat开发者_高级运维ion 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?


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.


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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消