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

Can't locate libzmq.so #88

Closed wari closed 11 years ago

wari commented 11 years ago

On CentOS 6.3 as well as Ubuntu 12.10, the default packages creates a libzmq.so.1.

On CentOS, I can easily create a symlink, but on Ubuntu, the location is not in the default array, i.e: /usr/lib/x86_64-linux-gnu.

I can of course just add to the array, and, also append a .1 to the map that searches for the file. But it's not as elegant as I'd like it to be (read: not really something I'd want to do a pull request with).

Any ideas?

chuckremes commented 11 years ago

I wish the various distros would stop with this nonsense. They rarely have a good reason for changing these paths.

My recommendation is to make a soft link from the library to /path/to/gem/ffi-rzmq/ext. When the gem loads, it will first search its "ext" directory for libraries before looking through system paths.

wari commented 11 years ago

Thanks @chuckremes for the heads up. /path/to/gem is a hassle when it comes to using RVM and gemsets, but at least there's a standard place for it that I can just dump a symlink to.