Closed buncis closed 3 years ago
gem version wkhtmltopdf-binary 0.12.6.5
0.12.6.5
/home/user/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/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: /home/user/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/wkhtmltopdf-binary-0.12.6.5/bin/wkhtmltopdf_ubuntu_21.04_amd64). (RuntimeError) from /home/user/.rbenv/versions/3.0.1/bin/wkhtmltopdf:23:in `load' from /home/user/.rbenv/versions/3.0.1/bin/wkhtmltopdf:23:in `<main>'
workaround
uninstall the gem rbenv rehash
install from apt
gem version wkhtmltopdf-binary
0.12.6.5