Subject:
Re: [ruby-ffi] need help loading a library
From:
Chuck Remes
Date:
4/25/11 2:59 PM
To:
ruby-ffi@googlegroups.com


On Apr 25, 2011, at 2:55 PM, Luis Lavena wrote:

> On Mon, Apr 25, 2011 at 4:50 PM, Chuck Remes <cremes.devlist@mac.com> wrote:
>> I'm trying to get my ffi-rzmq gem running on Windows (Windows 7 x64). Using DevKit from the RubyInstaller project I was able to successfully build a 32-bit version of the zeromq library. I created a /c/usr/local path and installed the library to that location. Additionally, I installed the ffi gem with 'ruby -S gem install ffi --platform=ruby' where ruby is 1.9.1-p430 so that it would be built using DevKit.
>> 
>> When I tried to require the ffi-rzmq gem, it failed on the call to #ffi_lib. The errors are listed in the pastie.
>> 
>> https://gist.github.com/941051
>> 
> 
> libzmq.dll needs to be in the PATH, try copying that file to Ruby\bin
> or adding the directory where libzmq.dll lives to the PATH.

Luis,

thanks for your answer. Unfortunately, there isn't any file generated by the 0mq make files called libzmq.dll. It creates libzmq.dll.a and libzmq.la only.

> I haven't invested time in test latest version of zeromq to see why is all this.
> 
> Will try once I get home and let you know. At first seems to be that
> the generated shared librari (dll) might not be compatible with the
> FFI gem, but let's see.

Fantastic.

In the meantime I will continue working on figuring this out.

cr