tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ruby18-rbtree broken



[adding tech-pkg back since the tech-pkg address was invalid]

On Thu, Aug 28, 2008 at 12:00:24AM +0200, Dieter Baron wrote:
> In article <20080827185722.GI20788%arresum.veego.de@localhost> Bernd wrote:
> : On Wed, Aug 27, 2008 at 08:10:45PM +0200, Dieter Baron wrote:
> : > hi,
> : > 
> : > with current pkgsrc, ruby18-rbtree cannot be loaded:
> : > 
> : > $ ruby18 /usr/pkg/lib/ruby/gems/1.8/gems/rbtree-0.2.0/test.rb
> : > /usr/pkg/lib/ruby/gems/1.8/gems/rbtree-0.2.0/test.rb:1:in `require':
> : > no such file to load -- rbtree (LoadError)
> : >         from /usr/pkg/lib/ruby/gems/1.8/gems/rbtree-0.2.0/test.rb:1
> : > 
> : > line 1 of test.rb:
> : > require "rbtree"
> 
> : You missed an option while you use a rubygem 
> (http://www.rubygems.org/read/chapter/3#page70):
> 
> : : ruby18 -rubygems /usr/pkg/lib/ruby/gems/1.8/gems/rbtree-0.2.0/test.rb
> : Loaded suite /usr/pkg/lib/ruby/gems/1.8/gems/rbtree-0.2.0/test
> [...]
> 
>   Okay, thank's.
> 
>   However, that same option is missing from scripts that use rbtree,
> for example tohg in the package fromcvs.  Somehow we should fix that,
> and I'd prefer not to have to patch each and every ruby script.  Any
> other ideas?

- Ruby 1.9 will 'fix' that problem, because it includes the gem code, but thats
  not an option now
- Adding "require 'rubygems'" to the script which uses a gem

There maybe other ways, but you need someone who knows ruby better then me.

Bernd



Home | Main Index | Thread Index | Old Index