From: Michael Neumann Date: 2004-05-23T21:42:06+09:00 Subject: Re: DBI On Sun, May 23, 2004 at 06:08:44PM +0900, Martin Uruz wrote: > hi > i hav a problem with database access to a mysql database i use this code: > #!/usr/bin/ruby > require "dbi" > > DBI.connect("DBI:Mysql:logs", > "rubychan", "Rubin") { |conn| > } > and i get the following error: > > /dbi/dbi.rb:490:in `load_driver': is not a class/module (TypeError) > from /usr/lib/ruby/site_ruby/1.8/dbi/dbi.rb:392:in > `_get_full_driver' > from /usr/lib/ruby/site_ruby/1.8/dbi/dbi.rb:372:in `connect' > from ./dbtest.rb:5 > can someone help me i am new in ruby Ruby/DBI depends on other software modules, in your case it expects the mysql-ruby to be installed. You can find it here: http://raa.ruby-lang.org/project/mysql-ruby/ Install it! Regards, Michael