From: Brian Candler Date: 2010-03-02T01:17:51+09:00 Subject: Re: No such file to load Error Nabs Kahn wrote: > Quick Update: If I run the program via IRB it works fine, but if I try > to run the program via the Terminal command ruby 'codeFile.rb' then it > gives the same error... So, that means it is not isolated to TextMate as > I was thinking earlier... Perhaps you have two different versions of ruby. Try running these in both ways: ruby -v ruby -e 'require "rbconfig"; puts Config::CONFIG["rubylibdir"]' ruby -e 'puts $:.inspect' On my box these give respectively: ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux] /usr/lib/ruby/1.8 ["/usr/local/lib/site_ruby/1.8", "/usr/local/lib/site_ruby/1.8/x86_64-linux", "/usr/local/lib/site_ruby", "/usr/lib/ruby/vendor_ruby/1.8", "/usr/lib/ruby/vendor_ruby/1.8/x86_64-linux", "/usr/lib/ruby/vendor_ruby", "/usr/lib/ruby/1.8", "/usr/lib/ruby/1.8/x86_64-linux", "."] The rubylibdir is where I'd expect open-uri.rb to be found. -- Posted via http://www.ruby-forum.com/.