Krzysztof P. Jasiutowicz wrote: > On 23-06-2001, Michael Neumann wrote thusly : > > Krzysztof P. Jasiutowicz wrote: > > > On 22-06-2001, Michael Neumann wrote thusly : > > > > Krzysztof P. Jasiutowicz wrote: > > > > > Could someone please explain why all my DBI scripts are failing ? > > > > > With an error : > > > > > /usr/lib/ruby/site_ruby/1.6/dbi/dbi.rb:289:in `load_driver': Could not load > > > > > driver (No such file to load -- mysql) (DBI::InterfaceError) > > > > > from /usr/lib/ruby/site_ruby/1.6/dbi/dbi.rb:252:in `connect' > > > > > from x.rb:4 > > > > The DBD is named "Mysql" not "mysql" (like Perl). > > > And I am calling this DBD like this in x.rb file : > > > dbh = DBI.connect('DBI:Mysql:test', '', '') > > > so why does it report 'mysql' file error ? > > Ah, I know where your problem lies. > > You have to install the "mysql" module by TOMITA Masahiro from RAA (Ruby Application Archive) or > > from http://www.tmtm.org/mysql/. > > The Mysql-DBD require this. > I feel a little embarassed asking again but two problems persist : No problem. > /usr/lib/ruby/site_ruby/1.6/DBD/Mysql/Mysql.rb:46:in `connect': must > specify database (DBI::InterfaceError) > > the line is : > dbh = DBI.connect("dbi:Mysql:test","","") Try: dbh = DBI.connect("dbi:Mysql:database=test", "", "") That should work. Another possible option is "host=hostname", e.g. dbh = DBI.connect("dbi:Mysql:database=test;host=xxxxx", "", "") where host defaults to localhost. > ruby setup.rb dryrun - hangs. I don't know about that option, sorry. Perhaps setup.rb (by Minero Aoki) specific bug? Just use steps config, setup, install, that should work. Regards, Michael -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de