search for: ffi_lib

Displaying 3 results from an estimated 3 matches for "ffi_lib".

Did you mean: f95_lib
2012 Apr 07
5
FFI and msvcrt
Hi, I''ve been using FFI with a Ruby 1.9.3 built with MSVC++ and it''s been working well. One thing I''ve run into though is this: ffi_lib :msvcrt But that''s not the runtime I want. But I don''t want to hard code the runtime name either. I realize I could parse it out of RbConfig, but I was hoping for something nicer. Is there a way we could create an analogue to FFI::Library::LIBC for the MSVC runtime? Something li...
2009 Sep 17
1
Load Error Using Mechanize Gem
Hi, I''m getting a "Could not open any of [xml2, xslt, exslt] (LoadError)" error when trying to run a simple Ruby program taken from the EXAMPLES.rdoc file of the Mechanize gem. The error is in this line of the Nokogiri module of libxml.rb: ffi_lib ''xml2'', ''xslt'', ''exslt'' Not sure if there are missing gems, and if so, what to install. Any ideas how to fix this? Thanks very much. Gary M. Program -- main.rb: ---------------------- ## Google require ''rubygems'' re...
2011 Aug 18
1
Multiple Errors with RRD and Rake
...ibrary ''rrd'': rrd: cannot open shared object file: No such file or directory. Could not open library ''librrd.so'': librrd.so: cannot open shared object file: No such file or directory /usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.0.9/lib/ffi/library.rb:75:in `block in ffi_lib'' /usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.0.9/lib/ffi/library.rb:54:in `map'' /usr/local/lib/ruby/gems/1.9.1/gems/ffi-1.0.9/lib/ffi/library.rb:54:in `ffi_lib'' /usr/local/lib/ruby/gems/1.9.1/gems/rrd-ffi-0.2.7/lib/rrd/wrapper.rb:44:in `singletonclass'' /usr/local/l...