SpinaCMS / Spina

Spina CMS
http://www.spinacms.com
Other
2.19k stars 403 forks source link

Loading images error #1304

Closed gpanaretou closed 1 year ago

gpanaretou commented 1 year ago

Hello,

I just created a brand new project, and I am trying to add an image to the Demo page. I am able to upload the image successfully, but i cannot see the image, neither in the selection menu or the Demo page. Any help as to what I am doing wrong?

This is the terminal output:

Started GET "/demo" for 127.0.0.1 at 2023-09-05 16:37:13 +0300
Processing by Spina::PagesController#show as HTML
  Parameters: {"id"=>"demo"}
  Spina::Account Load (0.4ms)  SELECT "spina_accounts".* FROM "spina_accounts" ORDER BY "spina_accounts"."id" ASC LIMIT $1  [["LIMIT", 1]]
  Spina::Page Load (0.8ms)  SELECT "spina_pages".* FROM "spina_pages" INNER JOIN "spina_page_translations" "spina_page_translations_en" ON "spina_page_translations_en"."spina_page_id" = "spina_pages"."id" AND "spina_page_translations_en"."locale" = 'en' WHERE "spina_page_translations_en"."materialized_path" = '/demo' LIMIT $1  [["LIMIT", 1]]
  CACHE Spina::Account Load (0.0ms)  SELECT "spina_accounts".* FROM "spina_accounts" ORDER BY "spina_accounts"."id" ASC LIMIT $1  [["LIMIT", 1]]
  CACHE Spina::Page Load (0.0ms)  SELECT "spina_pages".* FROM "spina_pages" INNER JOIN "spina_page_translations" "spina_page_translations_en" ON "spina_page_translations_en"."spina_page_id" = "spina_pages"."id" AND "spina_page_translations_en"."locale" = 'en' WHERE "spina_page_translations_en"."materialized_path" = '/demo' LIMIT $1  [["LIMIT", 1]]
  CACHE Spina::Page Load (0.0ms)  SELECT "spina_pages".* FROM "spina_pages" INNER JOIN "spina_page_translations" "spina_page_translations_en" ON "spina_page_translations_en"."spina_page_id" = "spina_pages"."id" AND "spina_page_translations_en"."locale" = 'en' WHERE "spina_page_translations_en"."materialized_path" = '/demo' LIMIT $1  [["LIMIT", 1]]
  CACHE Spina::Page Load (0.0ms)  SELECT "spina_pages".* FROM "spina_pages" INNER JOIN "spina_page_translations" "spina_page_translations_en" ON "spina_page_translations_en"."spina_page_id" = "spina_pages"."id" AND "spina_page_translations_en"."locale" = 'en' WHERE "spina_page_translations_en"."materialized_path" = '/demo' LIMIT $1  [["LIMIT", 1]]
  Rendering layout layouts/demo/application.html.erb
  Rendering demo/pages/demo.html.erb within layouts/demo/application
  Spina::Page::Translation Load (0.4ms)  SELECT "spina_page_translations".* FROM "spina_page_translations" WHERE "spina_page_translations"."spina_page_id" = $1  [["spina_page_id", 2]]
  ↳ app/views/demo/pages/demo.html.erb:1
  Rendered demo/pages/demo.html.erb within layouts/demo/application (Duration: 6.6ms | Allocations: 1462)
  Rendered demo/shared/_languages.html.erb (Duration: 0.1ms | Allocations: 14)
  Spina::Page Load (0.5ms)  SELECT "spina_pages".* FROM "spina_pages" WHERE "spina_pages"."ancestry" IS NULL AND "spina_pages"."resource_id" IS NULL AND "spina_pages"."active" = $1 AND "spina_pages"."show_in_menu" = $2 AND "spina_pages"."active" = $3 AND "spina_pages"."draft" = $4 ORDER BY "spina_pages"."position" ASC  [["active", true], ["show_in_menu", true], ["active", true], ["draft", false]]
  ↳ app/views/demo/shared/_navigation.html.erb:2
  Spina::Page::Translation Load (0.5ms)  SELECT "spina_page_translations".* FROM "spina_page_translations" WHERE "spina_page_translations"."spina_page_id" = $1  [["spina_page_id", 1]]
  ↳ app/views/demo/shared/_navigation.html.erb:2
  Spina::Page Exists? (0.9ms)  SELECT 1 AS one FROM "spina_pages" WHERE "spina_pages"."ancestry" = '1' AND "spina_pages"."resource_id" IS NULL AND "spina_pages"."active" = $1 AND "spina_pages"."show_in_menu" = $2 AND "spina_pages"."active" = $3 AND "spina_pages"."draft" = $4 LIMIT $5  [["active", true], ["show_in_menu", true], ["active", true], ["draft", false], ["LIMIT", 1]]
  ↳ app/views/demo/shared/_navigation.html.erb:2
  CACHE Spina::Page::Translation Load (0.0ms)  SELECT "spina_page_translations".* FROM "spina_page_translations" WHERE "spina_page_translations"."spina_page_id" = $1  [["spina_page_id", 2]]
  ↳ app/views/demo/shared/_navigation.html.erb:2
  Spina::Page Exists? (0.4ms)  SELECT 1 AS one FROM "spina_pages" WHERE "spina_pages"."ancestry" = '2' AND "spina_pages"."resource_id" IS NULL AND "spina_pages"."active" = $1 AND "spina_pages"."show_in_menu" = $2 AND "spina_pages"."active" = $3 AND "spina_pages"."draft" = $4 LIMIT $5  [["active", true], ["show_in_menu", true], ["active", true], ["draft", false], ["LIMIT", 1]]
  ↳ app/views/demo/shared/_navigation.html.erb:2
  Rendered demo/shared/_navigation.html.erb (Duration: 21.8ms | Allocations: 6624)
  Rendered layout layouts/demo/application.html.erb (Duration: 29.5ms | Allocations: 8601)
Completed 200 OK in 59ms (Views: 27.4ms | ActiveRecord: 4.0ms | Allocations: 22073)

Started GET "/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--3d05d74c8942364ba29254c1d3e46715fd625a8e/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RkhKbGMybDZaVjkwYjE5c2FXMXBkRnNIYVFMUUIya0MwQWM9IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--11ef10c60f0fcb6877f474bf358200426aeddc5c/Screenshot%20from%202023-09-05%2015-54-51.png" for 127.0.0.1 at 2023-09-05 16:37:13 +0300
Started GET "/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--3d05d74c8942364ba29254c1d3e46715fd625a8e/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9UY21WemFYcGxYM1J2WDJacGJHeGJCMmszYVRjPSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--03afdb628e1bd5c8e88e326c2930ccfdea374e49/Screenshot%20from%202023-09-05%2015-54-51.png" for 127.0.0.1 at 2023-09-05 16:37:13 +0300
Processing by ActiveStorage::Representations::RedirectController#show as PNG
  Parameters: {"signed_blob_id"=>"eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--3d05d74c8942364ba29254c1d3e46715fd625a8e", "variation_key"=>"[FILTERED]", "filename"=>"Screenshot from 2023-09-05 15-54-51"}
  ActiveStorage::Blob Load (1.7ms)  SELECT "active_storage_blobs".* FROM "active_storage_blobs" WHERE "active_storage_blobs"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Processing by ActiveStorage::Representations::RedirectController#show as PNG
  Parameters: {"signed_blob_id"=>"eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--3d05d74c8942364ba29254c1d3e46715fd625a8e", "variation_key"=>"[FILTERED]", "filename"=>"Screenshot from 2023-09-05 15-54-51"}
  ActiveStorage::VariantRecord Load (1.9ms)  SELECT "active_storage_variant_records".* FROM "active_storage_variant_records" WHERE "active_storage_variant_records"."blob_id" = $1 AND "active_storage_variant_records"."variation_digest" = $2 LIMIT $3  [["blob_id", 1], ["variation_digest", "kjyFZzqedkXvfNcjkPRGl1bhyzM="], ["LIMIT", 1]]
  Disk Storage (0.7ms) Downloaded file from key: vz2vv2674v22ut57g48jdchzuvqv
  ActiveStorage::Blob Load (1.1ms)  SELECT "active_storage_blobs".* FROM "active_storage_blobs" WHERE "active_storage_blobs"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:51: warning: already initialized constant GLib::G_FREE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:51: warning: previous definition of G_FREE was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:59: warning: already initialized constant GLib::LOG_FLAG_RECURSION
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:59: warning: previous definition of LOG_FLAG_RECURSION was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:60: warning: already initialized constant GLib::LOG_FLAG_FATAL
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:60: warning: previous definition of LOG_FLAG_FATAL was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:63: warning: already initialized constant GLib::LOG_LEVEL_ERROR
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:63: warning: previous definition of LOG_LEVEL_ERROR was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:64: warning: already initialized constant GLib::LOG_LEVEL_CRITICAL
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:64: warning: previous definition of LOG_LEVEL_CRITICAL was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:65: warning: already initialized constant GLib::LOG_LEVEL_WARNING
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:65: warning: previous definition of LOG_LEVEL_WARNING was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:66: warning: already initialized constant GLib::LOG_LEVEL_MESSAGE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:66: warning: previous definition of LOG_LEVEL_MESSAGE was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:67: warning: already initialized constant GLib::LOG_LEVEL_INFO
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:67: warning: previous definition of LOG_LEVEL_INFO was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:68: warning: already initialized constant GLib::LOG_LEVEL_DEBUG
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:68: warning: previous definition of LOG_LEVEL_DEBUG was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:71: warning: already initialized constant GLib::GLIB_TO_SEVERITY
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:71: warning: previous definition of GLIB_TO_SEVERITY was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:86: warning: already initialized constant GLib::LOG_HANDLER
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:86: warning: previous definition of LOG_HANDLER was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:155: warning: already initialized constant GObject::GBOOL_TYPE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:155: warning: previous definition of GBOOL_TYPE was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:156: warning: already initialized constant GObject::GINT_TYPE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:156: warning: previous definition of GINT_TYPE was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:157: warning: already initialized constant GObject::GUINT64_TYPE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:157: warning: previous definition of GUINT64_TYPE was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:158: warning: already initialized constant GObject::GDOUBLE_TYPE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:158: warning: previous definition of GDOUBLE_TYPE was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:159: warning: already initialized constant GObject::GENUM_TYPE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:159: warning: previous definition of GENUM_TYPE was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:160: warning: already initialized constant GObject::GFLAGS_TYPE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:160: warning: previous definition of GFLAGS_TYPE was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:161: warning: already initialized constant GObject::GSTR_TYPE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:161: warning: previous definition of GSTR_TYPE was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:162: warning: already initialized constant GObject::GOBJECT_TYPE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:162: warning: previous definition of GOBJECT_TYPE was here
  ActiveStorage::VariantRecord Load (2.1ms)  SELECT "active_storage_variant_records".* FROM "active_storage_variant_records" WHERE "active_storage_variant_records"."blob_id" = $1 AND "active_storage_variant_records"."variation_digest" = $2 LIMIT $3  [["blob_id", 1], ["variation_digest", "7znXHeRCTap2r1lbm70FgY2OL0c="], ["LIMIT", 1]]
Completed 500 Internal Server Error in 50ms (ActiveRecord: 3.6ms | Allocations: 18946)

LoadError (Could not open library 'vips.so.42': vips.so.42: cannot open shared object file: No such file or directory.
Could not open library 'libvips.so.42': libvips.so.42: cannot open shared object file: No such file or directory):

ffi (1.15.5) lib/ffi/library.rb:145:in `block in ffi_lib'
ffi (1.15.5) lib/ffi/library.rb:99:in `map'
ffi (1.15.5) lib/ffi/library.rb:99:in `ffi_lib'
ruby-vips (2.1.4) lib/vips.rb:573:in `<module:Vips>'
ruby-vips (2.1.4) lib/vips.rb:570:in `<main>'
<internal:/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
bootsnap (1.16.0) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
zeitwerk (2.6.11) lib/zeitwerk/kernel.rb:38:in `require'
image_processing (1.12.2) lib/image_processing/vips.rb:1:in `<main>'
<internal:/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
bootsnap (1.16.0) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
zeitwerk (2.6.11) lib/zeitwerk/kernel.rb:38:in `require'
activestorage (7.0.7.2) lib/active_storage/transformers/image_processing_transformer.rb:29:in `const_get'
activestorage (7.0.7.2) lib/active_storage/transformers/image_processing_transformer.rb:29:in `processor'
activestorage (7.0.7.2) lib/active_storage/transformers/image_processing_transformer.rb:20:in `process'
activestorage (7.0.7.2) lib/active_storage/transformers/transformer.rb:22:in `transform'
activestorage (7.0.7.2) app/models/active_storage/variation.rb:56:in `block in transform'
activesupport (7.0.7.2) lib/active_support/notifications.rb:206:in `block in instrument'
activesupport (7.0.7.2) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
activesupport (7.0.7.2) lib/active_support/notifications.rb:206:in `instrument'
activestorage (7.0.7.2) app/models/active_storage/variation.rb:55:in `transform'
activestorage (7.0.7.2) app/models/active_storage/variant_with_record.rb:35:in `block in transform_blob'
activestorage (7.0.7.2) lib/active_storage/downloader.rb:15:in `block in open'
activestorage (7.0.7.2) lib/active_storage/downloader.rb:24:in `open_tempfile'
activestorage (7.0.7.2) lib/active_storage/downloader.rb:12:in `open'
activestorage (7.0.7.2) lib/active_storage/service.rb:90:in `open'
activestorage (7.0.7.2) app/models/active_storage/blob.rb:301:in `open'
activestorage (7.0.7.2) app/models/active_storage/variant_with_record.rb:34:in `transform_blob'
activestorage (7.0.7.2) app/models/active_storage/variant_with_record.rb:19:in `process'
activestorage (7.0.7.2) app/models/active_storage/variant_with_record.rb:14:in `processed'
activestorage (7.0.7.2) app/controllers/active_storage/representations/base_controller.rb:14:in `set_representation'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:400:in `block in make_lambda'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:199:in `block (2 levels) in halting'
actionpack (7.0.7.2) lib/abstract_controller/callbacks.rb:34:in `block (2 levels) in <module:Callbacks>'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:200:in `block in halting'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:595:in `block in invoke_before'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:595:in `each'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:595:in `invoke_before'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:116:in `block in run_callbacks'
actiontext (7.0.7.2) lib/action_text/rendering.rb:20:in `with_renderer'
actiontext (7.0.7.2) lib/action_text/engine.rb:69:in `block (4 levels) in <class:Engine>'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:127:in `instance_exec'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:127:in `block in run_callbacks'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:138:in `run_callbacks'
actionpack (7.0.7.2) lib/abstract_controller/callbacks.rb:233:in `process_action'
actionpack (7.0.7.2) lib/action_controller/metal/rescue.rb:23:in `process_action'
actionpack (7.0.7.2) lib/action_controller/metal/instrumentation.rb:67:in `block in process_action'
activesupport (7.0.7.2) lib/active_support/notifications.rb:206:in `block in instrument'
activesupport (7.0.7.2) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
activesupport (7.0.7.2) lib/active_support/notifications.rb:206:in `instrument'
actionpack (7.0.7.2) lib/action_controller/metal/instrumentation.rb:66:in `process_action'
actionpack (7.0.7.2) lib/action_controller/metal/params_wrapper.rb:259:in `process_action'
activerecord (7.0.7.2) lib/active_record/railties/controller_runtime.rb:27:in `process_action'
actionpack (7.0.7.2) lib/abstract_controller/base.rb:151:in `process'
actionview (7.0.7.2) lib/action_view/rendering.rb:39:in `process'
actionpack (7.0.7.2) lib/action_controller/metal.rb:188:in `dispatch'
actionpack (7.0.7.2) lib/action_controller/metal.rb:251:in `dispatch'
actionpack (7.0.7.2) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
actionpack (7.0.7.2) lib/action_dispatch/routing/route_set.rb:32:in `serve'
actionpack (7.0.7.2) lib/action_dispatch/journey/router.rb:50:in `block in serve'
actionpack (7.0.7.2) lib/action_dispatch/journey/router.rb:32:in `each'
actionpack (7.0.7.2) lib/action_dispatch/journey/router.rb:32:in `serve'
actionpack (7.0.7.2) lib/action_dispatch/routing/route_set.rb:852:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/static.rb:23:in `call'
rack (2.2.8) lib/rack/tempfile_reaper.rb:15:in `call'
rack (2.2.8) lib/rack/etag.rb:27:in `call'
rack (2.2.8) lib/rack/conditional_get.rb:27:in `call'
rack (2.2.8) lib/rack/head.rb:12:in `call'
actionpack (7.0.7.2) lib/action_dispatch/http/permissions_policy.rb:38:in `call'
actionpack (7.0.7.2) lib/action_dispatch/http/content_security_policy.rb:36:in `call'
rack (2.2.8) lib/rack/session/abstract/id.rb:266:in `context'
rack (2.2.8) lib/rack/session/abstract/id.rb:260:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/cookies.rb:704:in `call'
activerecord (7.0.7.2) lib/active_record/migration.rb:603:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:99:in `run_callbacks'
actionpack (7.0.7.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/debug_exceptions.rb:28:in `call'
web-console (4.2.0) lib/web_console/middleware.rb:132:in `call_app'
web-console (4.2.0) lib/web_console/middleware.rb:28:in `block in call'
web-console (4.2.0) lib/web_console/middleware.rb:17:in `catch'
web-console (4.2.0) lib/web_console/middleware.rb:17:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/show_exceptions.rb:29:in `call'
railties (7.0.7.2) lib/rails/rack/logger.rb:40:in `call_app'
railties (7.0.7.2) lib/rails/rack/logger.rb:25:in `block in call'
activesupport (7.0.7.2) lib/active_support/tagged_logging.rb:99:in `block in tagged'
activesupport (7.0.7.2) lib/active_support/tagged_logging.rb:37:in `tagged'
activesupport (7.0.7.2) lib/active_support/tagged_logging.rb:99:in `tagged'
railties (7.0.7.2) lib/rails/rack/logger.rb:25:in `call'
sprockets-rails (3.4.2) lib/sprockets/rails/quiet_assets.rb:13:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/remote_ip.rb:93:in `call'
request_store (1.5.1) lib/request_store/middleware.rb:19:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/request_id.rb:26:in `call'
rack (2.2.8) lib/rack/method_override.rb:24:in `call'
rack (2.2.8) lib/rack/runtime.rb:22:in `call'
activesupport (7.0.7.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/server_timing.rb:61:in `block in call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/server_timing.rb:26:in `collect_events'
actionpack (7.0.7.2) lib/action_dispatch/middleware/server_timing.rb:60:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/static.rb:23:in `call'
rack (2.2.8) lib/rack/sendfile.rb:110:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/host_authorization.rb:137:in `call'
railties (7.0.7.2) lib/rails/engine.rb:530:in `call'
puma (5.6.7) lib/puma/configuration.rb:252:in `call'
puma (5.6.7) lib/puma/request.rb:77:in `block in handle_request'
puma (5.6.7) lib/puma/thread_pool.rb:340:in `with_force_shutdown'
puma (5.6.7) lib/puma/request.rb:76:in `handle_request'
puma (5.6.7) lib/puma/server.rb:443:in `process_client'
puma (5.6.7) lib/puma/thread_pool.rb:147:in `block in spawn_thread'
  Disk Storage (104.6ms) Downloaded file from key: vz2vv2674v22ut57g48jdchzuvqv
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:51: warning: already initialized constant GLib::G_FREE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:51: warning: previous definition of G_FREE was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:59: warning: already initialized constant GLib::LOG_FLAG_RECURSION
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:59: warning: previous definition of LOG_FLAG_RECURSION was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:60: warning: already initialized constant GLib::LOG_FLAG_FATAL
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:60: warning: previous definition of LOG_FLAG_FATAL was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:63: warning: already initialized constant GLib::LOG_LEVEL_ERROR
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:63: warning: previous definition of LOG_LEVEL_ERROR was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:64: warning: already initialized constant GLib::LOG_LEVEL_CRITICAL
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:64: warning: previous definition of LOG_LEVEL_CRITICAL was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:65: warning: already initialized constant GLib::LOG_LEVEL_WARNING
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:65: warning: previous definition of LOG_LEVEL_WARNING was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:66: warning: already initialized constant GLib::LOG_LEVEL_MESSAGE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:66: warning: previous definition of LOG_LEVEL_MESSAGE was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:67: warning: already initialized constant GLib::LOG_LEVEL_INFO
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:67: warning: previous definition of LOG_LEVEL_INFO was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:68: warning: already initialized constant GLib::LOG_LEVEL_DEBUG
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:68: warning: previous definition of LOG_LEVEL_DEBUG was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:71: warning: already initialized constant GLib::GLIB_TO_SEVERITY
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:71: warning: previous definition of GLIB_TO_SEVERITY was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:86: warning: already initialized constant GLib::LOG_HANDLER
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:86: warning: previous definition of LOG_HANDLER was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:155: warning: already initialized constant GObject::GBOOL_TYPE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:155: warning: previous definition of GBOOL_TYPE was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:156: warning: already initialized constant GObject::GINT_TYPE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:156: warning: previous definition of GINT_TYPE was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:157: warning: already initialized constant GObject::GUINT64_TYPE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:157: warning: previous definition of GUINT64_TYPE was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:158: warning: already initialized constant GObject::GDOUBLE_TYPE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:158: warning: previous definition of GDOUBLE_TYPE was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:159: warning: already initialized constant GObject::GENUM_TYPE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:159: warning: previous definition of GENUM_TYPE was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:160: warning: already initialized constant GObject::GFLAGS_TYPE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:160: warning: previous definition of GFLAGS_TYPE was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:161: warning: already initialized constant GObject::GSTR_TYPE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:161: warning: previous definition of GSTR_TYPE was here
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:162: warning: already initialized constant GObject::GOBJECT_TYPE
/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/ruby-vips-2.1.4/lib/vips.rb:162: warning: previous definition of GOBJECT_TYPE was here
Completed 500 Internal Server Error in 290ms (ActiveRecord: 14.7ms | Allocations: 252763)

LoadError (Could not open library 'vips.so.42': vips.so.42: cannot open shared object file: No such file or directory.
Could not open library 'libvips.so.42': libvips.so.42: cannot open shared object file: No such file or directory):

ffi (1.15.5) lib/ffi/library.rb:145:in `block in ffi_lib'
ffi (1.15.5) lib/ffi/library.rb:99:in `map'
ffi (1.15.5) lib/ffi/library.rb:99:in `ffi_lib'
ruby-vips (2.1.4) lib/vips.rb:573:in `<module:Vips>'
ruby-vips (2.1.4) lib/vips.rb:570:in `<main>'
<internal:/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
bootsnap (1.16.0) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
zeitwerk (2.6.11) lib/zeitwerk/kernel.rb:38:in `require'
image_processing (1.12.2) lib/image_processing/vips.rb:1:in `<main>'
<internal:/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/home/gnpan/.rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
bootsnap (1.16.0) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
zeitwerk (2.6.11) lib/zeitwerk/kernel.rb:38:in `require'
activestorage (7.0.7.2) lib/active_storage/transformers/image_processing_transformer.rb:29:in `const_get'
activestorage (7.0.7.2) lib/active_storage/transformers/image_processing_transformer.rb:29:in `processor'
activestorage (7.0.7.2) lib/active_storage/transformers/image_processing_transformer.rb:20:in `process'
activestorage (7.0.7.2) lib/active_storage/transformers/transformer.rb:22:in `transform'
activestorage (7.0.7.2) app/models/active_storage/variation.rb:56:in `block in transform'
activesupport (7.0.7.2) lib/active_support/notifications.rb:206:in `block in instrument'
activesupport (7.0.7.2) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
activesupport (7.0.7.2) lib/active_support/notifications.rb:206:in `instrument'
activestorage (7.0.7.2) app/models/active_storage/variation.rb:55:in `transform'
activestorage (7.0.7.2) app/models/active_storage/variant_with_record.rb:35:in `block in transform_blob'
activestorage (7.0.7.2) lib/active_storage/downloader.rb:15:in `block in open'
activestorage (7.0.7.2) lib/active_storage/downloader.rb:24:in `open_tempfile'
activestorage (7.0.7.2) lib/active_storage/downloader.rb:12:in `open'
activestorage (7.0.7.2) lib/active_storage/service.rb:90:in `open'
activestorage (7.0.7.2) app/models/active_storage/blob.rb:301:in `open'
activestorage (7.0.7.2) app/models/active_storage/variant_with_record.rb:34:in `transform_blob'
activestorage (7.0.7.2) app/models/active_storage/variant_with_record.rb:19:in `process'
activestorage (7.0.7.2) app/models/active_storage/variant_with_record.rb:14:in `processed'
activestorage (7.0.7.2) app/controllers/active_storage/representations/base_controller.rb:14:in `set_representation'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:400:in `block in make_lambda'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:199:in `block (2 levels) in halting'
actionpack (7.0.7.2) lib/abstract_controller/callbacks.rb:34:in `block (2 levels) in <module:Callbacks>'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:200:in `block in halting'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:595:in `block in invoke_before'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:595:in `each'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:595:in `invoke_before'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:116:in `block in run_callbacks'
actiontext (7.0.7.2) lib/action_text/rendering.rb:20:in `with_renderer'
actiontext (7.0.7.2) lib/action_text/engine.rb:69:in `block (4 levels) in <class:Engine>'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:127:in `instance_exec'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:127:in `block in run_callbacks'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:138:in `run_callbacks'
actionpack (7.0.7.2) lib/abstract_controller/callbacks.rb:233:in `process_action'
actionpack (7.0.7.2) lib/action_controller/metal/rescue.rb:23:in `process_action'
actionpack (7.0.7.2) lib/action_controller/metal/instrumentation.rb:67:in `block in process_action'
activesupport (7.0.7.2) lib/active_support/notifications.rb:206:in `block in instrument'
activesupport (7.0.7.2) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
activesupport (7.0.7.2) lib/active_support/notifications.rb:206:in `instrument'
actionpack (7.0.7.2) lib/action_controller/metal/instrumentation.rb:66:in `process_action'
actionpack (7.0.7.2) lib/action_controller/metal/params_wrapper.rb:259:in `process_action'
activerecord (7.0.7.2) lib/active_record/railties/controller_runtime.rb:27:in `process_action'
actionpack (7.0.7.2) lib/abstract_controller/base.rb:151:in `process'
actionview (7.0.7.2) lib/action_view/rendering.rb:39:in `process'
actionpack (7.0.7.2) lib/action_controller/metal.rb:188:in `dispatch'
actionpack (7.0.7.2) lib/action_controller/metal.rb:251:in `dispatch'
actionpack (7.0.7.2) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
actionpack (7.0.7.2) lib/action_dispatch/routing/route_set.rb:32:in `serve'
actionpack (7.0.7.2) lib/action_dispatch/journey/router.rb:50:in `block in serve'
actionpack (7.0.7.2) lib/action_dispatch/journey/router.rb:32:in `each'
actionpack (7.0.7.2) lib/action_dispatch/journey/router.rb:32:in `serve'
actionpack (7.0.7.2) lib/action_dispatch/routing/route_set.rb:852:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/static.rb:23:in `call'
rack (2.2.8) lib/rack/tempfile_reaper.rb:15:in `call'
rack (2.2.8) lib/rack/etag.rb:27:in `call'
rack (2.2.8) lib/rack/conditional_get.rb:27:in `call'
rack (2.2.8) lib/rack/head.rb:12:in `call'
actionpack (7.0.7.2) lib/action_dispatch/http/permissions_policy.rb:38:in `call'
actionpack (7.0.7.2) lib/action_dispatch/http/content_security_policy.rb:36:in `call'
rack (2.2.8) lib/rack/session/abstract/id.rb:266:in `context'
rack (2.2.8) lib/rack/session/abstract/id.rb:260:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/cookies.rb:704:in `call'
activerecord (7.0.7.2) lib/active_record/migration.rb:603:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
activesupport (7.0.7.2) lib/active_support/callbacks.rb:99:in `run_callbacks'
actionpack (7.0.7.2) lib/action_dispatch/middleware/callbacks.rb:26:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/actionable_exceptions.rb:17:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/debug_exceptions.rb:28:in `call'
web-console (4.2.0) lib/web_console/middleware.rb:132:in `call_app'
web-console (4.2.0) lib/web_console/middleware.rb:28:in `block in call'
web-console (4.2.0) lib/web_console/middleware.rb:17:in `catch'
web-console (4.2.0) lib/web_console/middleware.rb:17:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/show_exceptions.rb:29:in `call'
railties (7.0.7.2) lib/rails/rack/logger.rb:40:in `call_app'
railties (7.0.7.2) lib/rails/rack/logger.rb:25:in `block in call'
activesupport (7.0.7.2) lib/active_support/tagged_logging.rb:99:in `block in tagged'
activesupport (7.0.7.2) lib/active_support/tagged_logging.rb:37:in `tagged'
activesupport (7.0.7.2) lib/active_support/tagged_logging.rb:99:in `tagged'
railties (7.0.7.2) lib/rails/rack/logger.rb:25:in `call'
sprockets-rails (3.4.2) lib/sprockets/rails/quiet_assets.rb:13:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/remote_ip.rb:93:in `call'
request_store (1.5.1) lib/request_store/middleware.rb:19:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/request_id.rb:26:in `call'
rack (2.2.8) lib/rack/method_override.rb:24:in `call'
rack (2.2.8) lib/rack/runtime.rb:22:in `call'
activesupport (7.0.7.2) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/server_timing.rb:61:in `block in call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/server_timing.rb:26:in `collect_events'
actionpack (7.0.7.2) lib/action_dispatch/middleware/server_timing.rb:60:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/executor.rb:14:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/static.rb:23:in `call'
rack (2.2.8) lib/rack/sendfile.rb:110:in `call'
actionpack (7.0.7.2) lib/action_dispatch/middleware/host_authorization.rb:137:in `call'
railties (7.0.7.2) lib/rails/engine.rb:530:in `call'
puma (5.6.7) lib/puma/configuration.rb:252:in `call'
puma (5.6.7) lib/puma/request.rb:77:in `block in handle_request'
puma (5.6.7) lib/puma/thread_pool.rb:340:in `with_force_shutdown'
puma (5.6.7) lib/puma/request.rb:76:in `handle_request'
puma (5.6.7) lib/puma/server.rb:443:in `process_client'
puma (5.6.7) lib/puma/thread_pool.rb:147:in `block in spawn_thread'

And this is how it looks in the browser

image

sedubois commented 1 year ago

You have this error:

Could not open library 'vips.so.42': vips.so.42: cannot open shared object file: No such file or directory

Spina is built on top of Ruby on Rails. Ruby on Rails has a framework called Active Storage for handling file uploads. Active Storage, in turn, uses libvips to transform (e.g. resize or crop) images.

The error above means that the app tried to resize the uploaded image in order to render it, but failed because it did not find libvips on the system.

libvips is made available to the Rails app through the image_processing gem. The gem instructs to run brew install vips when used on a mac.

gpanaretou commented 1 year ago

You are right! Thank you very much.

I am on Linux Mint 21.2 (which is based in Ubuntu 22.04)

Simply using sudo apt install libvips fixed the issue.