Lanny Rosicky wrote:
> Austin Ziegler wrote:
>> On 6/29/06, Lanny Rosicky <lanny / canczech.com> wrote:
>>>
>>> I need to set it up so that the applications executing the require
>>> actually find the objects of the require statement
>> 
>> This may be changed in Ruby 1.8.5, I think, but the answer essentially 
>> is yes.
>> 
>> You can use RUBYOPTS=-rubygems but that's a bit of a hack.
>> 
>> -austin
> 
> Thanks. Setting RUBYOPTS would not be a hack if it worked. 

Heh, Austin misstyped.  Place the following in your .profile (or 
equivalent):

   export RUBYOPT=rubygems

See http://docs.rubygems.org/read/chapter/3#page70 for a discussion of 
the different options.

> In my case ir 
> would be  /usr/local/lib/ruby/site_ruby/but that is precicely where the 
> GEMS do not get installed by gem install ...

Umm ... you don't need to put the path name in RUBYOPT.  Just 
"rubygems".  That makes sure the RubyGems runtime is loaded and then it 
will find the rubygems for you.

-- 
Posted via http://www.ruby-forum.com/.