ruby - load paths are broken (?)

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


Hi,

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", "."]
irb(main):002:0>

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/local/lib/site_ruby/1.8/i486-linux",
 "/usr/local/lib/site_ruby/1.8/i386-linux",
 "/usr/local/lib/site_ruby",
 "/usr/lib/ruby/1.8",
 "/usr/lib/ruby/1.8/i486-linux",
 "/usr/lib/ruby/1.8/i386-linux", "."]

[1]
$ q ruby
ruby-1:1.8.5p2-3 athlon athlon.ac.pld-linux.org

$ q ruby
ruby-1:1.8.5-2 athlon athlon.th.pld-linux.org

-- 
Tomasz Wittner


More information about the pld-devel-en mailing list