From: kranthi reddy Date: 2008-05-05T16:53:54+09:00 Subject: Re: Very basic question | Ruby + MySql ------=_Part_6278_31542348.1209974034394 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hey, Well there may be a couple of reons involved why you are getting the error. Please check with your installtion of ruby gems. Once your done check wether 'gem' command is working or not in your terminal. If something goes wrong with the installtion then you can make it with up the dependencies. once you are done with the process..In your irb please check with the 'require dbi' .If it returns true then you are ready to go ahead with the mysql. cheers, kranthi On Mon, May 5, 2008 at 1:15 PM, Phillip Gawlowski < cmdjackryan@googlemail.com> 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----- > > ------=_Part_6278_31542348.1209974034394--