From: Rick DeNatale Date: 2007-11-10T08:48:57+09:00 Subject: Re: no such file to load --- fox 16 On 11/9/07, Todd Benson wrote: > On Nov 9, 2007 2:45 PM, Hari Pillai wrote: > > Hi, > > I downloaded FxRuby via gem. The both direcories , > > C:\ruby\lib\ruby\gems\1.8\gems\fxruby-1.6.13-mswin32 > > C:\ruby\lib\ruby\gems\1.8\gems\fxruby-1.6.13 > > exist in the correct location, but when I try to run it, I get the following > > error:- > > > > C:\ruby\lib\ruby\gems\1.8\gems\fxruby-1.6.13-mswin32\tests>irb > > irb(main):001:0> load 'fox16' > > LoadError: no such file to load -- fox16 > > from (irb):1:in `load' > > from (irb):1 > > irb(main):002:0> exit > > > > Windows XP machine, Do I need to add any entries to as a path or anything > > specific to work with FXruby library please? > > > > thanks > > Hari > > Gems are for requiring, files are for loading, and trix are for kids :-) > > Try require instead of load... > > require 'fox16' No, if load won't work, require won't either. Require is just the same as load except that it checks to see if the file has been already loaded and doesn't reload it if so. I suspect that the problem is that he needs to first require 'rubygems'. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/