From: Nobuyoshi Nakada Date: 2007-07-23T16:47:27+09:00 Subject: Re: Import gem to Ruby 1.9 Hi, At Mon, 23 Jul 2007 09:30:08 +0900, Eric Hodel wrote in [ruby-core:11783]: > > On Jul 18, 2007, at 01:26, NAKAMURA, Hiroshi wrote: > > 4. What $LOAD_PATH order should be? > > 4-1. by default? > > [RUBYLIBDIR, SITEDIR] > > 4-2. after requiring rubygems? > > [GEMs, RUBYLIBDIR, SITEDIR] or > > [RUBYLIBDIR, GEMs, SITEDIR] or > > [RUBYLIBDIR, SITEDIR, GEMs] > > Right now gems come before SITEDIR and after RUBYLIBDIR, and this > seems to work well. > > Nothing should come before RUBYLIBDIR because it prevents -I from > working for developers. You are confused. SITEDIR comes before RUBYLIBDIR. $ ruby19 -v -e 'p $:' ruby 1.9.0 (2007-07-20 revision 12823) [i686-linux] ["/usr/lib/ruby/site_ruby/1.9", "/usr/lib/ruby/site_ruby/1.9/i686-linux", "/usr/lib/ruby/site_ruby", "/usr/lib/ruby/1.9", "/usr/lib/ruby/1.9/i686-linux", "."] -- Nobu Nakada