Problem with Mysql in win ruby 1.6.8

I’ve installed the PP 1.6.8 version of Ruby for windows. It comes with
DBI and Mysql support. However, when I run a test.rb script I wrote
(basically the stuff from the Mysql-DBI homepage). I get this error:

c:/ruby/lib/ruby/site_ruby/1.6/dbi/dbi.rb:424:in load_driver': Could not load driver (uninitialized constant Mysql at DBI::DBD) (DBI::InterfaceError) from c:/ruby/lib/ruby/site_ruby/1.6/dbi/dbi.rb:339:in '_get_full_driver' from c:/ruby/lib/ruby/site_ruby/1.6/dbi/dbi.rb:319:inconnect’
from C:\webdev\LLI-FRN\test.rb:5

Any help at all would be appreciated. I’m working on a project and
would like to use webrick with mysql on windows.

BTW – I’ve even gone down the path of attempting to compile it myself
with mingw/msys, but I cannot seem to get configure to work.

Thanks!
Greg Brondo
greg@brondo.com

I you sure you have both dbi and mysql-ruby installed? I had the same
error when I installed dbi but not mysql-ruby (I had thought dbi has
mysql support included).

···

On Wed, 12 Mar 2003 17:36:47 GMT, Greg Brondo wrote:

I’ve installed the PP 1.6.8 version of Ruby for windows. It comes with
DBI and Mysql support. However, when I run a test.rb script I wrote
(basically the stuff from the Mysql-DBI homepage). I get this error:

c:/ruby/lib/ruby/site_ruby/1.6/dbi/dbi.rb:424:in `load_driver’: Could
not load driver (uninitialized constant Mysql at DBI::DBD)


Marek Janukowicz

Child wrote:

···

On Wed, 12 Mar 2003 17:36:47 GMT, Greg Brondo wrote:

I’ve installed the PP 1.6.8 version of Ruby for windows. It comes with
DBI and Mysql support. However, when I run a test.rb script I wrote
(basically the stuff from the Mysql-DBI homepage). I get this error:

c:/ruby/lib/ruby/site_ruby/1.6/dbi/dbi.rb:424:in `load_driver’: Could
not load driver (uninitialized constant Mysql at DBI::DBD)

I you sure you have both dbi and mysql-ruby installed? I had the same
error when I installed dbi but not mysql-ruby (I had thought dbi has
mysql support included).

As far as I know. I used version 1.6.8 from rubyinstaller.sf.net. It’s
supposed to include DBI and Mysql. I checked in the library and mysql.o
is there.