Repository navigation
Missing vips/libvips dependency in bin/setup causes setup to fail
#261
ruby-ist
started this conversation in
Bug reports
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
While running
bin/setupon a fresh machine withoutlibvipspre-installed, setup fails duringrails db:preparewith this error:Why this happens
The initializer added in #226 (
config/initializers/vips.rb) callsVips.block_untrusted(true)on boot. If thelibvipssystem library is missing,ruby-vipsfails to load properly and raisesNoMethodErrorerror.CI and Docker setups aren't affected since
libvipsis already installed there. Before that initializer was added,bin/setupcompleted fine because the gem wasn't evaluated on boot.Proposed Fix & PR
Fix: I’ve updated
bin/setupto installvips/libvipsvia Homebrew, APT, and Pacman such that local setups match what Docker and CI expect.PR: #260
All reactions