From: Csongor Date: 2008-05-05T16:40:09+09:00 Subject: Very basic question | Ruby + MySql I'm sorry to ask such a newbie question but I wasn't able to figure this out yet. I just want to write a simple Ruby program that can select data from a MySql database. I assume that Ruby DBI would be the easiest way to go but I don't think I have the required modules/gems installed. I can't even do a require 'dbi', it throws the following error: LoadError: no such file to load -- dbi I found a few tutorial pages but they don't give all the steps. These are the pages I used as reference: http://www.tmtm.org/en/ruby/mysql/ http://www.kitebird.com/articles/ruby-mysql.html Basically I am looking for the step-by-step instructions on how to run a query on a MySql DB using a Ruby program from thin air. My system is a Mac OSX Leopard with ruby 1.8.6 (2007-09-24 patchlevel 111) [universal-darwin9.0]. Can someone kindly give me the exact steps (from installing the modules to using Ruby DBI) to run the simplest possible select query form MySql DB? Again, sorry for the newbie question.