From: KUBO Takehiro Date: 2009-04-23T22:14:29+09:00 Subject: [ruby-core:23291] Re: [Bug #1399] Segmentation fault is raised when you use a postgres gem On Thu, Apr 23, 2009 at 6:16 PM, Dirkjan Bussink wrote: > The current ruby-pg / ruby-postgres gems for Windows are only compiled > for Ruby 1.8. I don't know whether it is already possible to provide > multiple precompiled binaries through Rubygems for 1.8 and 1.9, maybe > anyone knows? Ruby-oci8 2.0 gem does. In lib/oci8.rb: case RUBY_VERSION when /^1\.9\.1/ require 'oci8lib_191' when /^1\.8/ require 'oci8lib_18' else raise 'unsupported ruby version: ' + RUBY_VERSION end It includes oci8lib_191.so for ruby 1.9.1(*1) compiled by VC6 and oci8lib_18.so for ruby 1.8(*2). *1 http://www.garbagecollect.jp/ruby/mswin32/en/download/release.html *2 One Click Installer If a ruby binary gem doesn't work for 1.9, it should set required_ruby_version in the gemspec correctly as follows: s.required_ruby_version = '~> 1.8.0' # 1.8.0 <= ruby version < 1.9.0