Blog Home  Home RSS 2.0 Atom 1.0 CDF  
The Efficient Coder - SOLVED: Ruby 'load_driver' is not a class/module (SQL Server)
There has got to be a better way of communicating with our computers!
 
 Tuesday, April 29, 2008

While attempting to get ruby to connect to a SQL server using DBI.connect I ran into a bit of a challenge...getting the error message

'load_driver' is not a class/module

To resolve this :

  1. Download ruby_dbi the files from http://rubyforge.org/frs/?group_id=234&release_id=20222
  2. Create the directories under \ruby\lib\ruby\1.8\ called \DBD\ADO
  3. From your extract copy the file ADO.rb into that directory

This works with V1.8.5-24

Here's hoping this might save some one some time.

-ec


 

4/29/2008 5:41:22 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0]    |  Trackback
Copyright © 2010 Kevin D. Wolf. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: