From: James Harrison Date: 2012-08-08T10:07:52+09:00 Subject: Re: Gem install or usage problem in shared environment --e89a8ff1c89e62997b04c6b6bd2a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Aug 7, 2012 at 5:50 PM, Bartosz Dziewo=C5=84ski wrote: > 2012/8/8 Tom Moulton : > > James Harrison wrote in post #1071601: > >> You're running ruby 1.8 and requiring libraries without first using: > >> > >> require "rubygems" > > > > I did set RUBYOPT=3Drubygems in the environmant > > > > Both the environment variable and the GEM_HOME variable are described i= n > > > > 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? --e89a8ff1c89e62997b04c6b6bd2a Content-Type: text/html; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable

On Tue, Aug 7, 2012 at 5:50 PM, Bartosz = Dziewo=F1ski <matma.rex@gmail.com> wrote:
2012/8/8 Tom Moulton <lists@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=3Drubygems 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 firs= t, to rule out the possibility of that being the problem?=A0
--e89a8ff1c89e62997b04c6b6bd2a--