Luis Lavena
1/6/2008 12:54:00 AM
On 5 ene, 22:21, Matthew Williams <matthew.d.willi...@gmail.com>
wrote:
> Using "gem query --local" I'm returned a list of installed gems, one of
> which is called "relax".
>
> However, within the IRB I cannot require this gem. Setting up a simple
> Ruby script I cannot do an include on it either as it returns a message
> that it can't find the gem.
>
> -------------
>
> irb(main):001:0> require 'relax'
> LoadError: no such file to load -- relax
> from (irb):1:in `require'
> from (irb):1
> irb(main):002:0> require 'test/unit'
> => true
> irb(main):003:0>
>
> --------------
>
You didn't tried:
require 'rubygems'
require 'relax'
AFAIK, there is no RUBYOPT set under Darwin that automatically loads
rubygems.
Try doit manually.
HTH,
--
Luis Lavena