From: Brian Candler Date: 2003-06-24T03:55:38+09:00 Subject: Re: Newbie dbi install problem On Mon, Jun 23, 2003 at 11:12:01PM +0900, David D'Andrea wrote: > I'm just starting out, reading the pickaxe, this forum, and trying to > get a handle on OOP/design patterns. I'm hoping to use Ruby for > database applications, as I've been going crazy with unstructured code > in FileMaker (!!!). > > I've just installed dbi (this on OS X): ... > but the test script from Paul DuBois' tutorial > (http://www.kitebird.com/articles/ruby-dbi.html) doesn't execute > correctly: > > [Chiclet:~/Rubydev/dbi] davidd% ruby simple.rb > /sw/lib/ruby/site_ruby/1.6/dbi/dbi.rb:502:in `load_driver': Could not > load driver (undefined method `Driver' for nil) (DBI::InterfaceError) You need to install the ruby-mysql package, *as well as* the ruby-dbi package. (ruby-dbi is just a wrapper around ruby-dbi, which is in turn a Ruby wrapper around the native C API) Regards, Brian.