Ruby binding not loading

asked 2014-03-11 02:35:42 -0500

aledalgrande gravatar image

updated 2014-03-11 03:09:52 -0500

Whenever I try to run OpenCV code in Ruby bindings I get this error:

/usr/local/var/rbenv/versions/2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': dlopen(/usr/local/var/rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/ruby-opencv-0.0.12/opencv.bundle, 9): Library not loaded: /usr/local/opt/opencv/lib/libopencv_nonfree.2.4.8.dylib (LoadError)
  Referenced from: /usr/local/var/rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/ruby-opencv-0.0.12/opencv.bundle
  Reason: image not found - /usr/local/var/rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/ruby-opencv-0.0.12/opencv.bundle

I installed OpenCV today from Homebrew (2.4.8.2), and the gem is ruby-opencv "0.0.12".

Do you have any clue? My C++ skills are very rusty ;)

edit retag flag offensive close merge delete