From: Gregory Marton Date: 2008-06-24T23:21:39+09:00 Subject: require is not the same in irb as in ruby? $ irb irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'builder' => true irb(main):003:0> ^D All well and good. Now: $ cat > foo.rb #!/usr/bin/ruby require 'rubygems' require 'builder' ^D $ chmod +x foo.rb $ foo.rb /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__': no such file to load -- builder (LoadError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' from ./foo.rb:3 What's going on here? I only experience this with builder. Other modules seem fine. Incidentally, there's a builder.rb at /usr/local/lib/site_ruby/1.8/rubygems/builder.rb right next to the custom_require.rb that fails to find it. Thanks for any insights! Grem -- Posted via http://www.ruby-forum.com/.