zeromq / rbzmq

Ruby binding for 0MQ

Home Page:http://www.zeromq.org/bindings:ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problems when used with 0MQ 2.1.0

ehsanul opened this issue · comments

I'm using the development version of zmq (2.1.0), which may be the source of my troubles, but I had assumed a minor version change should cause no problems.

The zmq gem seemed to install just fine, but it doesn't work when I require it (ruby 1.8.7p249):

irb(main):001:0> require 'rubygems'; require 'zmq'
=> true
irb(main):002:0> require 'zmq'
LoadError: libzmq.so.1: cannot open shared object file: No such file or directory - /usr/lib/ruby/gems/1.8/gems/zmq-2.1.0.1/lib/zmq.so
    from /usr/lib/ruby/gems/1.8/gems/zmq-2.1.0.1/lib/zmq.so
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from (irb):2
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:168

Also on ruby 1.9.2p0:

ruby-1.9.2-p0 > require 'rubygems'
 => true 
ruby-1.9.2-p0 > require 'zmq'
LoadError: libzmq.so.1: cannot open shared object file: No such file or directory - /home/ehsanul/.rvm/gems/ruby-1.9.2-p0/gems/zmq-2.1.0.1/lib/zmq.so
    from <internal:lib/rubygems/custom_require>:33:in `require'
    from <internal:lib/rubygems/custom_require>:33:in `rescue in require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from (irb):2
    from /home/ehsanul/.rvm/rubies/ruby-1.9.2-p0/bin/irb:17:in `<main>'

I had forgotten to sudo ldconfig after installing 0MQ originally. Since I've reinstalled and ran ldconfig, the bindings are working perfectly.