3

好的,我是 Ruby 新手,我正试图弄清楚如何连接到运行在 AS/400(iSeries、Power i、System i,无论 IBM 现在如何称呼它)上的 DB2 数据库。以下是我的具体情况:

  • 操作系统:Windows 7 Pro 64 位
  • 红宝石:1.9.3p125 (2012-02-16) [i386-mingw32]
  • ibm_db:2.5.9 x86-mingw32
  • CLI db2level(32 位):DB2 v9.7.0.441

我一直在尝试查找一些简单的文档,但 IBM 的信息很难理解。我想我应该能够运行 irb 并输入“require 'mswin32/ibm_db'”,但是当我这样做时,我得到了这个错误:

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's support team for more information.

我无法找到任何东西来帮助我找出我做错了什么,所以任何建议都将不胜感激。

谢谢,巴勃罗

4

1 回答 1

0

事实证明,正如我在上面的评论中所说,我遇到的问题与 Ruby 1.9.3 直接相关,并且在 Ruby 1.9.2 中不存在。 RubyForge 讨论解释了这个问题。尚无修复程序。

于 2012-04-06T03:17:06.857 回答