You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
The text was updated successfully, but these errors were encountered:
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)
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.The text was updated successfully, but these errors were encountered: