published under license CC4-BY
posted in category Software Development & Programming / Ruby on Rails
posted at 27. May '24
Missing libvips
Recently I was moving images on myrtana.sk from raw MiniMagick + cp
to ActiveStorage and I saw this:
> xx.file.variant(:hd).blob.download
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:65: warning: previous definition of LOG_LEVEL_WARNING was here
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:66: warning: already initialized constant GLib::LOG_LEVEL_MESSAGE
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:66: warning: previous definition of LOG_LEVEL_MESSAGE was here
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:67: warning: already initialized constant GLib::LOG_LEVEL_INFO
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:67: warning: previous definition of LOG_LEVEL_INFO was here
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:68: warning: already initialized constant GLib::LOG_LEVEL_DEBUG
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:68: warning: previous definition of LOG_LEVEL_DEBUG was here
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:71: warning: already initialized constant GLib::GLIB_TO_SEVERITY
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:71: warning: previous definition of GLIB_TO_SEVERITY was here
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:86: warning: already initialized constant GLib::LOG_HANDLER
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:86: warning: previous definition of LOG_HANDLER was here
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:155: warning: already initialized constant GObject::GBOOL_TYPE
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:155: warning: previous definition of GBOOL_TYPE was here
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:156: warning: already initialized constant GObject::GINT_TYPE
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:156: warning: previous definition of GINT_TYPE was here
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:157: warning: already initialized constant GObject::GUINT64_TYPE
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:157: warning: previous definition of GUINT64_TYPE was here
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:158: warning: already initialized constant GObject::GDOUBLE_TYPE
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:158: warning: previous definition of GDOUBLE_TYPE was here
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:159: warning: already initialized constant GObject::GENUM_TYPE
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:159: warning: previous definition of GENUM_TYPE was here
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:160: warning: already initialized constant GObject::GFLAGS_TYPE
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:160: warning: previous definition of GFLAGS_TYPE was here
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:161: warning: already initialized constant GObject::GSTR_TYPE
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:161: warning: previous definition of GSTR_TYPE was here
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:162: warning: already initialized constant GObject::GOBJECT_TYPE
/home/myrtana_sk/shared/bundle/ruby/3.2.0/gems/ruby-vips-2.2.1/lib/vips.rb:162: warning: previous definition of GOBJECT_TYPE was here
If you see this, you are missing libvips
library (.so file). Install in Debian with:
apt-get install libvips42 libvips-tools
The second one package is optional. Now it should work.
Add Comment