[zeromq-dev] Ruby language binding
Jim Hodapp
james.hodapp at gmail.com
Thu Jan 5 15:01:35 CET 2012
I'm trying to run zeromq on a Mac running OS X Lion. I have Xcode installed as which gives me a Ruby installation of version 1.8.7. I have downloaded the latest zeromq stable version, ran ./configure, make and make install. By default it installed to /usr/local. Now I am attempting to install the zeromq Ruby language binding but cannot get it to find my zeromq installation. I have tried several things, but the following 2 are the ones that should work but don't:
sudo gem install zmq
sudo gem install zmq -- --with-zmq-dir=/usr/local/lib
Both result in the following output:
Building native extensions. This could take a while...
ERROR: Error installing zmq:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb --with-zmq-dir=/usr/local/lib
checking for zmq.h... yes
checking for zmq_init() in -lzmq... no
checking for zmq_init() in -lzmq... no
extconf.rb:36: Couldn't find zmq library. try setting --with-zmq-dir=<path> to tell me where it is. (RuntimeError)
This is what is contained in /usr/local/lib:
total 11496
-rwxr-xr-x 1 root wheel 383272 Jan 4 08:12 libzmq.1.dylib
-rw-r--r-- 1 root wheel 5491600 Jan 4 08:12 libzmq.a
lrwxr-xr-x 1 root wheel 14 Jan 4 08:12 libzmq.dylib -> libzmq.1.dylib
-rwxr-xr-x 1 root wheel 932 Jan 4 08:12 libzmq.la
drwxr-xr-x 3 root wheel 102 Jan 4 08:12 pkgconfig
Any thoughts would be appreciated. Is there a way of running the gem installation with a verbose output?
Thanks,
Jim
More information about the zeromq-dev
mailing list