ruby - load paths are broken (?)

Tomasz Wittner twittner at
Sat Dec 23 13:47:54 CET 2006


Today I tried to upgrade ruby-FXRuby (I haven't touched ruby for quite a long 
time) and notice that ruby-FXRuby examples aren't working at all - both Ac 
and Th are affected [1]:

[inter at asus /usr/src/examples/ruby-FXRuby-1.6.3]$ ruby hello.rb
hello.rb:3:in `require': no such file to load -- fox16 (LoadError)
        from hello.rb:3

I've checked load paths - they seem completely broken:
[inter at asus /usr/src/examples/ruby-FXRuby-1.6.3]$ irb
irb(main):001:0> $:
["/1.8", "/1.8/i686-linux", "", "/usr/lib/ruby/1.8", "/usr/lib/ruby/1.8/i686-linux", "."]

AFAIK they should look like (ok - it's Debian with its idiosyncrasies):
# irb1.8
irb(main):001:0> $:
=> ["/usr/local/lib/site_ruby/1.8",
 "/usr/lib/ruby/1.8/i386-linux", "."]

$ q ruby
ruby-1:1.8.5p2-3 athlon

$ q ruby
ruby-1:1.8.5-2 athlon

Tomasz Wittner

More information about the pld-devel-en mailing list