From: Matt Armstrong Date: 2002-02-26T01:07:23+09:00 Subject: Re: CONFIG['(site|ruby)libdir'] policies? Massimiliano Mirra writes: > On my system (Debian Linux), Config::CONFIG['sitelibdir'] and > Config::CONFIG['rubylibdir'] are mapped respectively to > /usr/lib/ruby/1.6 and /usr/local/lib/site_ruby/1.6. > > I have also installed 1.7, so there are /usr/lib/ruby/1.7 and > /usr/local/lib/site_ruby/1.7, too. > > What is the policy of the interpreter in accessing these directories? > Does Ruby 1.6 access /usr/lib/ruby/1.6 only, while Ruby 1.7 accesses > both /usr/lib/ruby/1.7 and /usr/lib/ruby/1.6? ruby 1.7 looks only in the 1.7 directories, ruby 1.6 looks only in the 1.6 directories. > Should a module working in 1.6 and 1.7 be placed in .../1.6? Should > a module working in 1.7 but not in 1.6 be placed in .../1.7, and so > on? Try "sitedir": ruby -r rbconfig -e 'puts Config::CONFIG["sitedir"]' /usr/local/lib/site_ruby Or have people install it once for each version of ruby they have. -- matt