Sure:
file /usr/local/lib/libzmq.1.dylib:
/usr/local/lib/libzmq.dylib: Mach-O 64-bit dynamically linked shared
library x86_64
And file `which ruby`:
/usr/bin/ruby: Mach-O universal binary with 2 architectures
/usr/bin/ruby (for architecture x86_64): Mach-O 64-bit
executable x86_64
/usr/bin/ruby (for architecture i386): Mach-O executable i386
ruby -v:
ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
zeromq version is 3.1.0-beta
Thanks,
Jim
>
>
> Message: 5
> Date: Fri, 06 Jan 2012 14:52:15 -0800
> From: Dimiter 'malkia' Stanev <[email protected]>
> Subject: Re: [zeromq-dev] Ruby language binding
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> 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
>
>
> End of zeromq-dev Digest, Vol 49, Issue 7
> *****************************************
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev