.../rvm/gems/ruby-3.0.2/gems/wkhtmltopdf-binary-0.12.6.5/bin/wkhtmltopdf:61:in `<top (required)>': Invalid platform, must be running on Ubuntu 16.04/18.04/20.04 CentOS 6/7/8, Debian 9/10, archlinux amd64, or intel-based Cocoa macOS (missing binary: .../rvm/gems/ruby-3.0.2/gems/wkhtmltopdf-binary-0.12.6.5/bin/wkhtmltopdf_rocky_8.5_amd64). (RuntimeError)
from .../rvm/gems/ruby-3.0.2/bin/wkhtmltopdf:23:in `load'
from .../rvm/gems/ruby-3.0.2/bin/wkhtmltopdf:23:in `<main>'
Currently, our systems are running rocky 8, hence why wkhtmltopdf_rocky_8.5_amd64 is what is being searched for. What is confusing me is the following lines in bin/wkhtmltopdf would suggest that we should in fact be looking a file by the name of wkhtmltopdf_centos_8_amd64, which is present in wkhtmltopdf-binary-0.12.6.5/bin/.
os = 'centos_8' if os.start_with?('rocky_8') || os.start_with?('rhel_8.')
...
architecture = RbConfig::CONFIG['host_cpu'] == 'x86_64' ? 'amd64' : 'i386'
"#{os}_#{architecture}"
Am I misunderstanding something here, or is it looking for the wrong filename? The only place where is seems like the prefix could be incorrectly set is in the line:
I am getting the following error:
Currently, our systems are running rocky 8, hence why
wkhtmltopdf_rocky_8.5_amd64
is what is being searched for. What is confusing me is the following lines inbin/wkhtmltopdf
would suggest that we should in fact be looking a file by the name ofwkhtmltopdf_centos_8_amd64
, which is present inwkhtmltopdf-binary-0.12.6.5/bin/
.Am I misunderstanding something here, or is it looking for the wrong filename? The only place where is seems like the
prefix
could be incorrectly set is in the line:Where, when, and how does
ENV['WKHTMLTOPDF_HOST_SUFFIX']
get defined?