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

ruby 3.1.2, using rbenv, ubuntu 22.04 #147

Open
ashrafalzyoud opened this issue Sep 27, 2022 · 4 comments
Open

ruby 3.1.2, using rbenv, ubuntu 22.04 #147

ashrafalzyoud opened this issue Sep 27, 2022 · 4 comments

Comments

@ashrafalzyoud
Copy link

$ wkhtmltopdf --version
/home/redmine/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.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/redmine/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/wkhtmltopdf-binary-0.12.6.5/bin/wkhtmltopdf_ubuntu_22.04_amd64). (RuntimeError)
	from /home/redmine/.rbenv/versions/3.1.2/bin/wkhtmltopdf:25:in `load'
	from /home/redmine/.rbenv/versions/3.1.2/bin/wkhtmltopdf:25:in `<main>'

not working by gem wkhtmltopdf_exe_path: '/home/redmine/.rbenv/shims/wkhtmltopdf'
if im install it by apt its working wkhtmltopdf_exe_path: '/usr/bin/wkhtmltopdf

@roostinghawk
Copy link

Same issue:#142

@johnhailu
Copy link
Contributor

#150 will fix it after pull request approval.

@dchuquilla
Copy link

dchuquilla commented Jul 4, 2024

please tell me how you fixed this because the ubuntu_22.04_arm64 binary is missing, how can I compile that one?

For the moment I downloaded de DEB file, installed manually and created a symlink for the bin I need

# download
wget http://ports.ubuntu.com/pool/universe/w/wkhtmltopdf/wkhtmltopdf_0.12.6-2_arm64.deb

# install
sudo dpkg -i wkhtmltopdf_0.12.6-2_arm64.deb

# symlink
cd /path/to-my/app-folder/shared/bundle/ruby/3.1.0/gems/wkhtmltopdf-binary-0.12.6.7/bin/
ln -s /usr/bin/wkhtmltopdf wkhtmltopdf_ubuntu_22.04_arm64

Then I finally passed that missing

@johnhailu
Copy link
Contributor

Hello @dchuquilla

U don't have to install it on your system.

  1. Download the deb file
  2. dpkg -x wkhtmltox_#.deb .
  3. Then compress the binary u get from step 2
  4. Add it to the gem, update tests
  5. Make a PR

This was roughly the steps i followed

Peace

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