From: "Mills Thomas (app1tam)" Date: 2003-10-16T00:41:58+09:00 Subject: Re: I had the exact same problem. My guess is that you are either missing some MySQL-DBI code or the permissions on the files are incorrect. Unfortunately, I did not know how to fix the problem by hand. So I deleted MySQL as installed by Mandrake (my Linux distribution at home) and re-installed MySQL from a download I found at mysql.com. Then I installed the Ruby-DBI package (http://prdownloads.sourceforge.net/ruby-dbi/ruby-dbi-all-0.0.21.tar.gz?down load) and everything started working. Several years ago this would have been called the 'hammer and tongs' method, but it worked for me. Drew > -----Original Message----- > From: Sabyasachi Mustafi [mailto:sabymus@rediffmail.com] > Sent: Saturday, September 06, 2003 5:15 AM > To: ruby-talk@ruby-lang.org > Subject: > > > I am trying to connect to a mysql database with ruby and > showing the data in text boxes using Tk. But the following error > is coming. Is there any problem with the dbi itself or the problem > lies in the code? If you want then I can send the codes, just two > pages. Please help me as soon as possible. > > Thanks, > Sabyasachi Mustafi > > Error: > /usr/local/lib/ruby/site_ruby/1.8/dbi/dbi.rb: 490 > :in `load_driver': is not a class/module > > Stack Trace for Error > -------------------------- > /usr/local/lib/ruby/site_ruby/1.8/dbi/dbi.rb:490:in `load_driver': > is not a class/module > while executing > "rb_out c00003" > invoked from within > ".w00005 invoke" > ("uplevel" body line 1) > invoked from within > "uplevel #0 [list $w invoke]" > (procedure "tkButtonUp" line 7) > invoked from within > "tkButtonUp .w00005 > " > (command bound to event) > ___________________________________________________ > Law meets Electronics; Veena Weds Sanjay. > Rediff Matchmaker strikes another interesting match !! > Visit http://rediff.com/matchmaker?1 > >