Subject:
[ruby-ffi] Re: Using a 32-bit C library from 64-bit Ruby
From:
Wayne Meissner
Date:
9/28/12 4:46 AM
To:
ruby-ffi@googlegroups.com

Correct, you cannot load 32bit libraries in 64bit processes, nor vice-versa.

I think what you suggest, is the way most people solve this problem - have a 32bit server process, and communicate with it via a pipe or socket.

On Friday, September 28, 2012 7:02:17 PM UTC+10, Ivo Wever wrote:
Given the differences between the ia32 and x86_64 architectures I suppose this is impossible, but just to verify: is it indeed impossible to use a 32-bit C library in a 64-bit Ruby process using FFI? Would the best solution to this problem be to run a separate 32-bit Ruby process with a DRb server and access the library from the 64-bit Ruby process using DRb?