好吧,我是Ruby的新手,我正试图弄清楚如何连接到运行在AS/400上的DB2数据库(iSeries、Power I、System I,不管IBM现在怎么称呼它)。以下是我的具体情况:
- 操作系统:Windows 7 Pro 64位
- Ruby:1.9.3p125(2012-02-16)[i386-mingw32]
- ibm_db:2.5.9 x86-ming32
- CLI db2level(32位):DB2 v9.7.0.441
我一直试图找到一些简单的文档,但IBM的信息很难理解。我认为我应该能够运行irb并输入"require‘mswin32/ibm_db’",但当我这样做时,我会得到以下错误:
C:clidriverbin>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.
我一直找不到任何东西来帮助我弄清楚自己做错了什么,所以任何建议都将不胜感激。
谢谢,Pablo
事实证明,正如我在上面的评论中所说,我遇到的问题与Ruby 1.9.3直接相关,而在Ruby 1.9.2中不存在。RubyForge讨论解释了这个问题。修复程序尚不可用。