-
Notifications
You must be signed in to change notification settings - Fork 62
Description
Firstly thanks for vips and this gem! Great work.
Whilst writing this up, I'm not 100% sure this is the right place to ask for help but the error is the same as similar issues:
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
ruby-vips '2.0.17'
ruby '~> 2.5.7'
ffi - 1.11.3
I've tried multiple build packs to get ruby-vips deployed on heroku.
https://elements.heroku.com/buildpacks/brandoncc/heroku-buildpack-vips
https://elements.heroku.com/buildpacks/alex88/heroku-buildpack-vips
https://elements.heroku.com/buildpacks/verumex/heroku-buildpack-libvips
And building my own debian packages by following this blog
https://renchap.com/blog/post/building_recent_libvips_on_debian/
https://dronebase-buildpacks.s3.amazonaws.com/libvips-dev_8.6.3-1_amd64.deb
https://dronebase-buildpacks.s3.amazonaws.com/libvips-tools_8.6.3-1_amd64.deb
https://dronebase-buildpacks.s3.amazonaws.com/libvips42_8.6.3-1_amd64.deb
However this is the latest from heroku build logs..
-----> Detecting rake tasks
!
! Could not detect rake tasks
! ensure you can run `$ bundle exec rake -P` against your app
! and using the production group of your Gemfile.
! rake aborted!
! 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
I have got this running locally with 'rails s' and managed to tile my high res image. However if a try and launch my server with foreman and sidkiq workers it fails to launch with:
23:39:11 assets_worker.1 | /bundle/gems/ffi-1.11.3/lib/ffi/library.rb:145:in `block in ffi_lib': Could not open library 'vips.so.42': vips.so.42: cannot open shared object file: No such file or directory. (LoadError)
23:39:11 assets_worker.1 | Could not open library 'libvips.so.42': libvips.so.42: cannot open shared object file: No such file or directory
23:39:11 assets_worker.1 | from /bundle/gems/ffi-1.11.3/lib/ffi/library.rb:99:in `map'
23:39:11 assets_worker.1 | from /bundle/gems/ffi-1.11.3/lib/ffi/library.rb:99:in `ffi_lib'
23:39:11 assets_worker.1 | from /bundle/gems/ruby-vips-2.0.17/lib/vips.rb:528:in `<module:Vips>'
23:39:11 assets_worker.1 | from /bundle/gems/ruby-vips-2.0.17/lib/vips.rb:525:in `<top (required)>'
23:39:11 assets_worker.1 | from /bundle/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in `require'
23:39:11 assets_worker.1 | from /bundle/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in `block in require'
23:39:11 assets_worker.1 | from /bundle/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:240:in `load_dependency'
23:39:11 assets_worker.1 | from /bundle/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in `require'
23:39:11 assets_worker.1 | from /bundle/gems/ruby-vips-2.0.17/lib/ruby-vips.rb:1:in `<top (required)>'
23:39:11 assets_worker.1 | from /var/lib/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:81:in `require'
23:39:11 assets_worker.1 | from /var/lib/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
23:39:11 assets_worker.1 | from /var/lib/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:76:in `each'
23:39:11 assets_worker.1 | from /var/lib/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:76:in `block in require'
23:39:11 assets_worker.1 | from /var/lib/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:65:in `each'
23:39:11 assets_worker.1 | from /var/lib/gems/2.5.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:65:in `require'
23:39:11 assets_worker.1 | from /var/lib/gems/2.5.0/gems/bundler-1.17.3/lib/bundler.rb:114:in `require'
23:39:11 assets_worker.1 | from /home/app/Sake/config/application.rb:16:in `<top (required)>'
23:39:11 assets_worker.1 | from /bundle/gems/sidekiq-5.2.7/lib/sidekiq/cli.rb:280:in `require'
23:39:11 assets_worker.1 | from /bundle/gems/sidekiq-5.2.7/lib/sidekiq/cli.rb:280:in `boot_system'
23:39:11 assets_worker.1 | from /bundle/gems/sidekiq-5.2.7/lib/sidekiq/cli.rb:46:in `run'
23:39:11 assets_worker.1 | from /bundle/gems/sidekiq-5.2.7/bin/sidekiq:12:in `<top (required)>'
23:39:11 assets_worker.1 | from /bundle/bin/sidekiq:29:in `load'
23:39:11 assets_worker.1 | from /bundle/bin/sidekiq:29:in `<main>'
Any tips would be appreciated. THanks