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

Debian Bookworm ships with ffi version 8 - causes LoadError: libffi.so.7: cannot open shared object file: No such file or directory - /usr/local/bundle/gems/ffi-1.15.5/lib/ffi_c.so #1036

Open
wakproductions opened this issue Jun 27, 2023 · 1 comment

Comments

@wakproductions
Copy link

I'm trying to build a Rails app on the latest Ruby 3.2.2 Docker Slim image, but they just switched it to the latest release of Debian (Bookworm). It seems that the ffi gem is dependent on libffi7, but Bookworm ships with version 8. So I get the error:

LoadError: libffi.so.7: cannot open shared object file: No such file or directory - /usr/local/bundle/gems/ffi-1.15.5/lib/ffi_c.so

It can be remedied by downgrading my Docker image to Bullseye by specifying FROM ruby:3.2.2-slim-bullseye but the gem will have to be updated to accommodate Bookworm.

@aleksandrlat
Copy link

aleksandrlat commented Feb 22, 2024

I have the same issue with ruby:3.2.2-bullseye

 LoadError: libffi.so.6: cannot open shared object file: No such file or directory - /gems/ruby/3.2.0/gems/ffi-1.16.3/lib/ffi_c.so
web_1            | <internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require': libffi.so.6: cannot open shared object file: No such file or directory - /gems/ruby/3.2.0/gems/ffi-1.16.3/lib/ffi_c.so (LoadError)

It works with ruby:3.2.2-buster for me

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

2 participants