Now this one is really buggy! I’ve spend 4 hours looking for a solution. Looking at the web left me in anguish thinking about the fact that no forum had such a straightforward solution that I mustered using the famous “Hit-And-Trial” algorithm. Alright, too much of gyaan I know but here is what the error looked up like initially:
require no such file to load dbi
C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/dbi-0.4.3/lib/dbi.rb:318:in `load_driver': Could not load driver (uninitialized constant MysqlError) (DBI::InterfaceError)
from C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/dbi-0.4.3/lib/dbi.rb:160:in `_get_full_driver'
from C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/dbi-0.4.3/lib/dbi.rb:145:in `connect'
1. Although NetBeans is integrated with Ruby, kindly install the latest environment from http://www.ruby-lang.org/en/downloads/
4. Compile the program and you are all set.