From: Demonic Software Date: 2008-03-13T12:08:08+09:00 Subject: Re: Using gems in a script or irb ------=_Part_4517_14602400.1205377696801 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks Joel. On Wed, Mar 12, 2008 at 9:53 PM, Joel VanderWerf wrote: > Demonic Software wrote: > > I am in the process of trying to setup a ruby development environment > (not > > for Ruby on Rails), and I was wondering how I go about using ruby gems > in a > > script or from irb. > > This works: > > $ echo $RUBYOPT > rubygems > > That causes ruby to run as if you specified -rubygems on the command > line, and there is a lib called ubygems.rb (without the "r") that this > loads and which then sets up gems. > > -- > vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407 > > ------=_Part_4517_14602400.1205377696801--