Skip to content

LoadError in Spree::Admin::ProductsController#index (OpenBSD) #4445

Discussion options

You must be logged in to vote

I debugged the problem. It's came from the ruby-vips gem (/usr/local/lib/ruby/gems/3.1/gems/ruby-vips-2.1.4/lib/vips.rb)

In my /usr/local/lib I currently have

libglib-2.0.so.4201.7
libgobject-2.0.so.4200.14
libvips.so.0.0

But in vips.rb the library_name function took a bad abi number

line 26:

def library_name(name, abi_number)
  if FFI::Platform.windows?
    "lib#{name}-#{abi_number}.dll"
  elsif FFI::Platform.mac?
    "#{name}.#{abi_number}"
  else
    "#{name}.so.#{abi_number}"
  end
end

from the modules GLib, GObject and Vips

line 45, 137, 573:

ffi_lib library_name("glib-2.0", 0)
ffi_lib library_name("gobject-2.0", 0)
ffi_lib library_name("vips", 42)

Set on (0, 0, 42) instead of (42…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@jarednorman
Comment options

@joyboy67
Comment options

@jarednorman
Comment options

@joyboy67
Comment options

Comment options

You must be logged in to vote
2 replies
@wesley974
Comment options

@joyboy67
Comment options

Answer selected by joyboy67
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #4444 on July 10, 2022 21:25.