zakird / wkhtmltopdf_binary_gem

Ruby gem containing easily installable access to wkhtmltopdf application
https://rubygems.org/gems/wkhtmltopdf-binary
Apache License 2.0
184 stars 346 forks source link

Support for Arm64 #121

Closed stanBienaives closed 6 months ago

stanBienaives commented 3 years ago

Hello,

Thanks for your work. Do you have plan to support arm64 ?
I am using wicked_pdf in a debian docker on a M1 macbook)

The fall back for

os =>  debian_9
RbConfig::CONFIG['host_cpu’]  => arch64

is the suffixdebian_9_i386 which throw the error: Command Error: qemu-i386: Could not open '/lib/ld-linux.so.2': No such file or directory

For those in the same situation a workaround is to install the arm64 build for your distro from https://wkhtmltopdf.org/downloads.html

install it with

apt install /path/to/debfile.deb

And configure wiked_pdf with

WickedPdf.config = {
  exe_path: '/usr/local/bin/wkhtmltopdf',
}
pedrofurtado commented 3 years ago

Hello, @stanBienaives ! 👋

Thanks for get in contact with us.

At this moment, the gem does not provide the binary for Debian 9 Arm64, only Amd64 (and also i386).

Just for clarify: Do you have some production system hosted in Debian 9 Arm64, that uses (or want to use) wkhtmltopdf gem? Or this support will be for dev purposes (dev environment, for example)? 🤝

pedrofurtado commented 3 years ago

I checked that Wkhtmltopdf official site provides binary for debian 9 arm64. I will try spend some time for this support 🎉

unixmonkey commented 6 months ago

Many arm64 binaries are now included in version 0.12.6.7. Please check it out and let me know if what you need is still missing.