From: Csongor Date: 2008-05-06T05:35:01+09:00 Subject: Re: Very basic question | Ruby + MySql Philip, Thanks for the response. I wasn't, but I just did a quick test and require 'rubygems' is giving me a false. Look: sh-3.2# ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [universal-darwin9.0] sh-3.2# gem -v 1.1.1 sh-3.2# irb >> require 'rubygems' => false >> Any ideas? On May 5, 12:45 am, Phillip Gawlowski wrote: > -----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-----