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

G

Gordon Muirhead

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')

Produces:
true
true
["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
`connect'
from
C:/Users/Gordon/Documents/NetBeansProjects/BeansTest1/lib/main.rb:4

'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
installer.

Where do I go from here?

Thanks in advance for your kindness.

-g
 
R

Roger Pack

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top