From: Phillip Gawlowski Date: 2008-05-05T16:45:01+09:00 Subject: Re: Very basic question | Ruby + MySql -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Csongor wrote: | 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 are you using require 'rubygems' on the top of your script (before you load DBI)? If not, try that. ('export RUUBYOPTS=rubygems' should fix that permanently, I think) - -- Phillip Gawlowski Twitter: twitter.com/cynicalryan Blog: http://justarubyist.blogspot.com ~ - You know you've been hacking too long when... ...your radio is playing, and you're starting a big compile on your home box, and it occurs to you that the music will begin to get a bit jerky, because you think it's playing through the computer and you're not quite sure how well it'll multitask with the compile. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgeuvMACgkQbtAgaoJTgL/pSgCfYwR/Gvxe1/7hmPkOoxYflxoZ TeUAoIgALUM/bpUPn5Da5nQyHP6fZILy =IgRK -----END PGP SIGNATURE-----