From: Sam Roberts Date: 2005-03-04T11:37:27+09:00 Subject: Re: ruby gems, and the require problem (was Re: RAA Status & b) Quoting drbrain@segment7.net, on Fri, Mar 04, 2005 at 10:06:00AM +0900: > On 03 Mar 2005, at 16:48, Sam Roberts wrote: > > >Quoting jim@weirichhouse.org, on Fri, Mar 04, 2005 at 06:19:28AM +0900: > >> > >>You do need to assure that the rubygems package manager is loaded in > >>order > >>to take advantage of any gems on your system. There are basically > >>three > >>options: > >> > >>(1) Do a "require 'rubygems'" in your code. > > > >Change your ruby code. > > You have to add a require line somewhere in your code to load any > library, so I don't see what the problem with this one is. Libraries > have never magically appeared for me. Libraries have never magically *disappeared* for me because a packaging/installation tool put them in a place the runtime doesn't look for them. Until gems. Did you completely miss the point of Jim's claim, that you don't have to do anything special in your code to use a gem? That you have an amazing personal setup allowing you to get RUBYOPT defined everywhere is hardly the point - that you have to do the setup after deciding to use gems (or use one of the other two solutions) is the point. Sam