James Harrison | 8 Aug 2012 03:07
Favicon
Gravatar

Re: Gem install or usage problem in shared environment



On Tue, Aug 7, 2012 at 5:50 PM, Bartosz Dziewoński <matma.rex <at> gmail.com> wrote:
2012/8/8 Tom Moulton <lists <at> ruby-forum.com>:
> James Harrison wrote in post #1071601:
>> You're running ruby 1.8 and requiring libraries without first using:
>>
>> require "rubygems"
>
> I did set RUBYOPT=rubygems in the environmant
>
> Both the environment variable and the GEM_HOME variable are described in
>
> http://docs.rubygems.org/read/chapter/3/
>
> So what is so wrong doing it that way?
>
> What harm could happen from this method?

It is fine as long as you're not trying to run multiple versions of
Ruby or Ruby installed via RVM. But when you do try it, you're in for
a world of hurt.

-- Matma Rex


Have you tried requiring rubygems first, to rule out the possibility of that being the problem? 


Gmane