Ruby, DB2 / 400, ibm_db causing "segmentation fault"

Ok, I'm new to Ruby and I'm trying to figure out how to connect to a DB2 database running on AS / 400 (iSeries, Power i, System i, whatever is calling at IBM today). Here are my features:

  • OS: Windows 7 Pro 64-bit
  • Ruby: 1.9.3p125 (2012-02-16) [i386-mingw32]
  • ibm_db: 2.5.9 x86-mingw32
  • CLI db2level (32-bit): DB2 v9.7.0.441

I am trying to find some simple documentation, but the IBM information is quite difficult to understand. I think I am at the point where I can start irb and type "require" mswin32 / ibm_db ", but when I get this error:

C:\clidriver\bin>irb
Welcome to IRB. You are using ruby 1.9.3p125 (2012-02-16) [i386-mingw32]. Have fun ;)
>> require 'mswin32/ibm_db'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/ibm_db-2.5.9-x86-mingw32/lib/mswin32/rb19x   /ibm_db.so: [BUG] Segmentation fault
ruby 1.9.3p125 (2012-02-16) [i386-mingw32]

-- Control frame information -----------------------------------------------

...a bunch of stuff, let me know if I should include it or not...

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html


This application has requested the Runtime to terminate it in an unusual way.
Please contact the application support team for more information.

      

I haven't been able to find anything to help me figure out what I'm doing wrong, so any advice would be greatly appreciated.

Thanks, Pablo

+3


source to share


1 answer


As I said in my comment above, it turns out that the problem I was having is directly related to Ruby 1.9.3 and did not exist in Ruby 1.9.2. RubyForge discussion explaining the problem . The fix is ​​not yet available.



0


source







All Articles