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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
E3b94704f41e8826ed8c2c7844e78445?d=identicon&s=25 Gordon Muirhead (gordonm)
on 2008-12-19 23:14
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)
 from C:/users/gordon/Ruby/lib/ruby/site_ruby/1.8/dbi.rb:233:in
 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.

Bec38d63650c8912b6ba9b557fb953b9?d=identicon&s=25 Roger Pack (rogerdpack)
on 2008-12-22 09:48
I'd make sure the ruby odbc example scripts work [and maybe ditch odbc
altogether what is that anyway?]
This topic is locked and can not be replied to.