From: Max Russell Date: 2006-09-27T05:20:46+09:00 Subject: Re: Cookbook example - uninitialized constant Max Russell wrote: > Paul Lutus wrote: >> Max Russell wrote: >> >>> Interestingly I've tried this usign IRB on a Windows machine and can run >>> the functionality, however if I try the same script executed from file, >>> I get the uninitialized constant error. >> >> Possibly there are two or more different versions of Ruby on your >> machine, >> and each is activated in different circumstances. Or the IRB invocation >> differs in some subtle way from that in the source file. > > > I've just checked this out: > > Ruby 1.8.4 > Gem 0.9.0 > Blinkenlights 0.0.4 > > I've made sure that my system is consistent with only 1.8.x versions of > Ruby and libraries, so this one confuses me. Aha! More interesting stuff- trying this out again on my Ubuntu box it echos out the version if I do gem list | grep blinken and if I list my local gems, I can see it in there, however going in through IRB and trying what I could do with the Windows box I find: irb(main):001:0> require 'blinkenlights' LoadError: no such file to load -- blinkenlights from (irb):1:in `require' from (irb):1 So why would gem report that the gem is there, but IRB not think it installed? -- Posted via http://www.ruby-forum.com/.