chuckremes/ffi-rzmq — Issue #48: Unable to find libzmq.dll (windows 7 64-bit, VC 2010, jruby 1.6.5 64-bit, zeromq-3.0.2)
Author: enyqus
Created: 2011-11-20 04:41:47+00:00
State: open

Unable to find libzmq.dll even though libzmq.dll copied to jruby's bin, lib, and gem (as below) folders.
Copying libzmq.dll to current directory doesn't work either

test>jruby -v -S irb
jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_27) [Windows7-amd64-java]
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'ffi-rzmq'
LoadError: Could not open library 'c:/jruby-1.6.5/lib/ruby/gems/1.8/gems/ffi-rzmq-0.9.0/lib/ffi-rzmq/../../ext/libzmq.dll' : The operation completed successfully.
. Could not open library '/usr/local/lib/libzmq.dll' : The operation completed successfully.
. Could not open library '/opt/local/lib/libzmq.dll' : The operation completed successfully.
. Could not open library '/usr/local/homebrew/lib/libzmq.dll' : The operation completed successfully.
. Could not open library '/usr/lib64/libzmq.dll' : The operation completed successfully.
. Could not open library 'libzmq' : The operation completed successfully.
. Could not open library 'libzmq.dll' : The operation completed successfully.

from c:/jruby-1.6.5/lib/ruby/site_ruby/shared/ffi/library.rb:82:in `ffi_lib'
from org/jruby/RubyArray.java:2318:in `collect'
from c:/jruby-1.6.5/lib/ruby/site_ruby/shared/ffi/library.rb:64:in `ffi_lib'
from c:/jruby-1.6.5/lib/ruby/gems/1.8/gems/ffi-rzmq-0.9.0/lib/ffi-rzmq/libzmq.rb:14:in `LibZMQ'
from c:/jruby-1.6.5/lib/ruby/gems/1.8/gems/ffi-rzmq-0.9.0/lib/ffi-rzmq/libzmq.rb:5:in `(root)'
from org/jruby/RubyKernel.java:1038:in `require'
from c:/jruby-1.6.5/lib/ruby/gems/1.8/gems/ffi-rzmq-0.9.0/lib/ffi-rzmq/libzmq.rb:36:in `require'
from c:/jruby-1.6.5/lib/ruby/gems/1.8/gems/ffi-rzmq-0.9.0/lib/ffi-rzmq.rb:74:in `(root)'
from org/jruby/RubyArray.java:1612:in `each'
from c:/jruby-1.6.5/lib/ruby/gems/1.8/gems/ffi-rzmq-0.9.0/lib/ffi-rzmq.rb:73:in `(root)'
from org/jruby/RubyKernel.java:1038:in `require'
from c:/jruby-1.6.5/lib/ruby/gems/1.8/gems/ffi-rzmq-0.9.0/lib/ffi-rzmq.rb:59:in `require'
from (irb):2:in `evaluate'
from org/jruby/RubyKernel.java:1088:in `eval'
from c:/jruby-1.6.5/lib/ruby/1.8/irb.rb:158:in `eval_input'
from c:/jruby-1.6.5/lib/ruby/1.8/irb.rb:271:in `signal_status'
from c:/jruby-1.6.5/lib/ruby/1.8/irb.rb:155:in `eval_input'
from org/jruby/RubyKernel.java:1420:in `loop'
from org/jruby/RubyKernel.java:1192:in `catch'
from c:/jruby-1.6.5/lib/ruby/1.8/irb.rb:154:in `eval_input'
from c:/jruby-1.6.5/lib/ruby/1.8/irb.rb:71:in `start'
from org/jruby/RubyKernel.java:1192:in `catch'
from c:/jruby-1.6.5/lib/ruby/1.8/irb.rb:70:in `start'
from c:/jruby-1.6.5/bin/jirb:13:in `(root)'irb(main):003:0>