willglynn / ruby-zbar

Ruby bindings for the ZBar barcode recognition library
MIT License
83 stars 24 forks source link

LoadError: no library specified #3

Closed rogsmith closed 13 years ago

rogsmith commented 13 years ago

I am trying to write a quick test case using this gem and I am getting the following:

LoadError: no library specified from /Library/Ruby/Gems/1.8/gems/ffi-1.0.9/lib/ffi/library.rb:93:in ffi_libraries' from /Library/Ruby/Gems/1.8/gems/ffi-1.0.9/lib/ffi/library.rb:129:inattach_function'

willglynn commented 13 years ago

That's a weird error message. Do you have libzbar installed on your system? If so, could you confirm the location of the shared library?

The code looks in:

  ENV['ZBAR_LIB'] ||
  Dir['/{opt,usr}/{,local/}lib{,64}/libzbar.{dylib,so*}']
rogsmith commented 13 years ago

No I sure did not. I will do that now. Thanks