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

Hidden dependency: libvips #1

Open
slewsys opened this issue Apr 24, 2022 · 0 comments
Open

Hidden dependency: libvips #1

slewsys opened this issue Apr 24, 2022 · 0 comments

Comments

@slewsys
Copy link

slewsys commented Apr 24, 2022

This is not a bug, per say, but a hidden dependency. It appears that the gem ruby-vips does not check for the existence of libvips when installed. Consequently, when running the Rails Tutorial app, attempting to generate a thumbnail throws the error:

#<Thread:0x00007fad07357c38 /home/alm/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/actionpack-7.0.2.3/lib/action_controller/metal/live.rb:340 run> terminated with exception (report_on_exception is true):
/home/alm/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/ffi-1.15.5/lib/ffi/library.rb:145:in `block in ffi_lib': Could not open library 'vips.so.42': vips.so.42: cannot open shared object file: No such file or directory. (LoadError)
Could not open library 'libvips.so.42': libvips.so.42: cannot open shared object file: No such file or directory

After installing libvips, thumbnails are generated correctly.

At the time that bundle install was run ImageMagick was installed, so it's possible that this could mask some errors (e.g., the image_processing gem), but I'm glad that libvips is being used instead.

Thank you for a great service :)

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

1 participant