westonplatter / phashion

Ruby wrapper around pHash, the perceptual hash library for detecting duplicate multimedia files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Mac/Homebrew] Library not loaded: /usr/local/lib/libjpeg.8.dylib

duffyjp opened this issue · comments

Problem

🌶  duffy.jp 13:48$ rc
/Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:293:in `require': dlopen(/Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/phashion-1.2.0/lib/phashion_ext.bundle, 9): Library not loaded: /usr/local/lib/libjpeg.8.dylib (LoadError)
  Referenced from: /Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/phashion-1.2.0/lib/phashion_ext.bundle
  Reason: image not found - /Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/phashion-1.2.0/lib/phashion_ext.bundle
	from /Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:293:in `block in require'
	from /Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:259:in `load_dependency'
	from /Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:293:in `require'
	from /Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/phashion-1.2.0/lib/phashion.rb:57:in `<top (required)>'
	from /Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/bundler-1.16.0/lib/bundler/runtime.rb:81:in `require'
	from /Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/bundler-1.16.0/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
	from /Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/bundler-1.16.0/lib/bundler/runtime.rb:76:in `each'
	from /Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/bundler-1.16.0/lib/bundler/runtime.rb:76:in `block in require'
	from /Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/bundler-1.16.0/lib/bundler/runtime.rb:65:in `each'
	from /Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/bundler-1.16.0/lib/bundler/runtime.rb:65:in `require'
	from /Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/bundler-1.16.0/lib/bundler.rb:114:in `require'
	from /Users/duffyjp/Rails/duffy.jp/config/application.rb:7:in `<top (required)>'
	from /Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:156:in `require'
	from /Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:156:in `require_application_and_environment!'
	from /Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:77:in `console'
	from /Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
	from /Users/duffyjp/.rvm/gems/ruby-2.3.1/gems/railties-5.0.6/lib/rails/commands.rb:18:in `<top (required)>'
	from bin/rails:9:in `require'
	from bin/rails:9:in `<main>'

Update

(Uninstall all versions, and reinstall fixes it)

🌶  duffy.jp 14:18$ gem uninstall phashion

Select gem to uninstall:
 1. phashion-1.1.1
 2. phashion-1.2.0
 3. All versions
> 3
Successfully uninstalled phashion-1.1.1
Successfully uninstalled phashion-1.2.0

🌶  duffy.jp 14:26$ bundle
Fetching gem metadata from https://rubygems.org/.........
...
Fetching phashion 1.2.0
Installing phashion 1.2.0 with native extensions
...