On Dec 28, 2006, at 17:45, Paul van Delst wrote:
> Eric Hodel wrote:
>> On Dec 28, 2006, at 16:30, Paul van Delst wrote:
>>> Or should I install rubygem "inside" my ruby install? In:
>>>   ${HOME}/local/ruby/lib/ruby/site_ruby/1.8/i686-linux ?
>>> or
>>>   ${HOME}/local/ruby/lib/ruby/site_ruby
>>> or
>>>   ??
>> This is how rubygems is typically installed (by not supplying the  
>> --prefix option in step 4).  But you do not have root access.  You  
>> just needed to add rubygems to the $LOAD_PATH.
>
> This is going to make your eyes roll, but how does one add a root  
> subdirectory to LOAD_PATH so that ruby searches recursively down?  
> The only way I can figure out how to modify LOAD_PATH is to list  
> every specific directory via the RUBYLIB envar -- which is rather  
> onerous.
>
> An online search didn't reveal anything clever.

You can't, and you don't really want this.

If you have lib/net/http.rb and recursively add everything you'll end  
up with the ability to require 'http' which may cause bad things to  
happen like double loading.

-- 
Eric Hodel - drbrain / segment7.net - http://blog.segment7.net

I LIT YOUR GEM ON FIRE!