From: Todd Benson Date: 2007-11-10T11:29:15+09:00 Subject: Re: no such file to load --- fox 16 On Nov 9, 2007 7:45 PM, Joel VanderWerf wrote: > Joel VanderWerf wrote: > > Rick DeNatale wrote: > >> 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. > > > > Not true, because load ignores $LOAD_PATH: > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > Ignore that, it's quite wrong! > > However, load doesn't automatically append the .rb: > > irb(main):001:0> load "fileutils" > LoadError: no such file to load -- fileutils > from (irb):1:in `load' > from (irb):1 > irb(main):002:0> load "fileutils.rb" > => true > > That will certainly cause "load 'fox16'" to fail, regardless of the gem > issue. Yes, I forgot about that. You need to load the full file name, but still, doesn't loading a gem load more than one file? Todd