DBI:ODBC on Vista: "could not load driver"

The following code, run from NetBeans IDE on Vista SP1 Home Edition:
p require(‘dbi’)
p require(‘odbc’)
p DBI.available_drivers
dbh= DBI.connect(‘dbi:ODBC:cookbook’,‘root’)

[“dbi:Proxy:”, “dbi:ODBC:”]
C:/users/gordon/Ruby/lib/ruby/site_ruby/1.8/dbi.rb:368:in load_driver': Could not load driver (uninitialized constant DBI::TypeUtil) (DBI::InterfaceError) from C:/users/gordon/Ruby/lib/ruby/site_ruby/1.8/dbi.rb:233:in_get_full_driver’
from C:/users/gordon/Ruby/lib/ruby/site_ruby/1.8/dbi.rb:219:in

‘cookbook’ (from InstantRails, which is running)is a data source with a
32-bit Mysql ODBC driver, v5.1, installed with the SysWOW data source

Where do I go from here?

Thanks in advance for your kindness.


I’d make sure the ruby odbc example scripts work [and maybe ditch odbc
altogether what is that anyway?]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs