From: Owein Herrmann Date: 2008-10-14T06:40:34+09:00 Subject: Using DBI and MySQL gems Quick question: I thought using rubygems that to use the dbi and mysql to access a MySQL database from Ruby I would only have to do the following: gem 'mysql' gem 'dbi' and then I could do whatever, eg: dbh = DBI.connect('DBI:Mysql:money', 'mysqluser', 'pass3') HOWEVER, what I have to do is: gem 'mysql' gem 'dbi' require 'dbi' and THEN the DBI.connect syntax works.... does this indicate some problem with my rubygems (or dbi) installation? $ gem env RubyGems Environment: - VERSION: 0.9.4 (0.9.4) - INSTALLATION DIRECTORY: c:/ruby/lib/ruby/gems/1.8 - GEM PATH: - c:/ruby/lib/ruby/gems/1.8 - REMOTE SOURCES: - http://gems.rubyforge.org TIA for any help ~Owein -- Posted via http://www.ruby-forum.com/.