Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work on Ubuntu 24.04 server #175

Closed
cvalerio opened this issue Jul 18, 2024 · 4 comments
Closed

Does not work on Ubuntu 24.04 server #175

cvalerio opened this issue Jul 18, 2024 · 4 comments

Comments

@cvalerio
Copy link

cvalerio commented Jul 18, 2024

When trying to run on Ubuntu 24.04 server, it breaks with this error:

Invalid platform, must be running on Ubuntu 16.04/18.04/20.04/22.04, CentOS 6/7/8, Debian 9/10/11/12, Archlinux amd64, Debian 9/10/11/12 arm64, or Intel-based Cocoa macOS (missing binary: /app/vendor/bundle/ruby/3.3.0/gems/wkhtmltopdf-binary-0.12.6.7/bin/wkhtmltopdf_ubuntu_24.04_amd64

The same happens in a container FROM ubuntu:24.04.

PS: a workaround is to copy wkhtmltopdf_ubuntu_22.04_amd64.gz as wkhtmltopdf_ubuntu_24.04_amd64.gz, but would be better a specific support.

@unixmonkey
Copy link
Collaborator

There is no official build for 24.04 on https://wkhtmltopdf.org/downloads.html, and since the project is archived, there may never be. Glad to hear the 22 binary works though.

You could probably add another conditional below this line and PR that to help others: https://github.com/zakird/wkhtmltopdf_binary_gem/blob/master/bin/wkhtmltopdf#L46

@EnriqueRapela-AMAC
Copy link

Hello, is it known if the build for Ubuntu 24.04 is going to be added. Or is there any way to solve this problem without having to change the Ubuntu version?

@bhavesh-vadhvana
Copy link

RuntimeError (Failed to execute:
["/home/scpl/.asdf/installs/ruby/3.1.2/bin/wkhtmltopdf", "--footer-right", "[page] of [topage]", "file:////tmp/wicked_pdf20240825-775216-i438c6.html", "/tmp/wicked_pdf_generated_file20240825-775216-jy60it.pdf"]
Error: PDF could not be generated!
Command Error: /home/scpl/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/wkhtmltopdf-binary-0.12.6.6/bin/wkhtmltopdf:69:in <top (required)>': Invalid platform, must be running on Ubuntu 16.04/18.04/20.04/22.04, CentOS 6/7/8, Debian 9/10, Archlinux amd64, or Intel-based Cocoa macOS (missing binary: /home/scpl/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/wkhtmltopdf-binary-0.12.6.6/bin/wkhtmltopdf_ubuntu_24.04_amd64). (RuntimeError) from /home/scpl/.asdf/installs/ruby/3.1.2/bin/wkhtmltopdf:25:in load'
from /home/scpl/.asdf/installs/ruby/3.1.2/bin/wkhtmltopdf:25:in `

'
):

Hello, please can you help, it not work Ubuntu version 24.04

@unixmonkey
Copy link
Collaborator

Ubuntu 24.04 was added in #178 and in the current gem version (0.12.6.8). Please upgrade and let me know if you are still having issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants