Hi Jim,

Can you do

file /usr/local/lib/libzmq.1.dylib

also

file `which ruby`

Could it be that ruby and libzmq were compiled for different architectures?

Thanks,
Dimiter 'malkia' Stanev.

On 1/5/2012 6:01 AM, Jim Hodapp wrote:
> 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
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to