chuckremes / ffi-rzmq

FFI bindings for ZeroMQ so the library can be used under JRuby and other FFI-compliant ruby runtimes
242 stars 62 forks source link

The libzmq library (or DLL) could not be found on os x #91

Closed batizhevsky closed 11 years ago

batizhevsky commented 11 years ago

Hello, thank you for gem.

I try to use it my os x computer under Ruby 2.0 and Jruby 1.7.4 It's installed fine, but then I try require it i've got message:

jruby-1.7.4 :001 > require 'ffi-rzmq' Unable to load this gem. The libzmq library (or DLL) could not be found. If this is a Windows platform, make sure libzmq.dll is on the PATH. If the DLL was built with mingw, make sure the other two dependent DLLs, libgcc_s_sjlj-1.dll and libstdc++6.dll, are also on the PATH. For non-Windows platforms, make sure libzmq is located in this search path: ["/Users/leonko/.rvm/gems/jruby-1.7.4/gems/ffi-rzmq-1.0.1/lib/ffi-rzmq/../../ext/libzmq.dylib", "/usr/local/lib/libzmq.dylib", "/opt/local/lib/libzmq.dylib", "/usr/local/homebrew/lib/libzmq.dylib", "/usr/lib64/libzmq.dylib", "/Users/leonko/.rvm/gems/jruby-1.7.4/bin", "/Users/leonko/.rvm/rubies/jruby-1.7.4/bin", "/Users/leonko/.rvm/bin", "/usr/local/bin", "/usr/bin", "/bin", "/usr/sbin", "/sbin", "/opt/X11/bin", "/usr/local/smlnj-110.75/bin"] LoadError: The libzmq library (or DLL) could not be loaded from /Users/leonko/.rvm/gems/jruby-1.7.4/gems/ffi-rzmq-1.0.1/lib/ffi-rzmq/libzmq.rb:37:in LibZMQ' from /Users/leonko/.rvm/gems/jruby-1.7.4/gems/ffi-rzmq-1.0.1/lib/ffi-rzmq/libzmq.rb:6:inZMQ' from /Users/leonko/.rvm/gems/jruby-1.7.4/gems/ffi-rzmq-1.0.1/lib/ffi-rzmq/libzmq.rb:1:in (root)' from org/jruby/RubyKernel.java:1054:inrequire' from /Users/leonko/.rvm/rubies/jruby-1.7.4/lib/ruby/shared/rubygems/custom_require.rb:36:in require' from /Users/leonko/.rvm/gems/jruby-1.7.4/gems/ffi-rzmq-1.0.1/lib/ffi-rzmq.rb:1:in(root)' from org/jruby/RubyArray.java:1617:in each' from /Users/leonko/.rvm/gems/jruby-1.7.4/gems/ffi-rzmq-1.0.1/lib/ffi-rzmq.rb:71:in(root)' from org/jruby/RubyKernel.java:1054:in require' from /Users/leonko/.rvm/gems/jruby-1.7.4/gems/ffi-rzmq-1.0.1/lib/ffi-rzmq.rb:70:in(root)' from /Users/leonko/.rvm/rubies/jruby-1.7.4/lib/ruby/shared/rubygems/custom_require.rb:1:in (root)' from org/jruby/RubyKernel.java:1093:ineval' from /Users/leonko/.rvm/rubies/jruby-1.7.4/lib/ruby/shared/rubygems/custom_require.rb:60:in require' from (irb):1:inevaluate'

travis ci has same issue: https://travis-ci.org/chuckremes/ffi-rzmq/builds/6446484

Please help me

chuckremes commented 11 years ago

The failure on travis-ci was transient. I kicked off a rerun and it completed successfully for all rubies.

As for your problem, are you certain that you have installed libzmq on your computer? The gem does not include the zeromq library; it expects the library to already be installed on your computer.

Please advise.

batizhevsky commented 11 years ago

Thank you for reply.

I don't now, after install it all work fine