Sunday, December 5, 2010

Installing wxRuby (2) - failure

I tried to install wxRuby on a new laptop, and it failed.
$ irb
irb(main):003:0> require 'rubygems'
=> true
irb(main):004:0> require 'wx'
LoadError: cannot open shared object file: No such file or directory
However, it did work after installation of wxWidgets (see my "Installing wxWidgets"). Alex Fenton says "On Linux, the gem only installs the ruby interface to the wxWidgets library, not the core wxWidgets library code itself." (
$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'wx'
=> true

Unfortunately, in the current version of wxRuby, it only works for Ruby 1.8.7, not for 1.9.1.
~$ irb1.9.1
irb(main):001:0> require 'wx'
/var/lib/gems/1.9.1/gems/wxruby-2.0.1-x86-linux/lib/ [BUG] unknown type 0x22 (0xc given)
ruby 1.9.1p378 (2010-01-10 revision 26273) [i486-linux]

-- control frame ----------
c:0028 p:-39694812 s:0097 b:0097 l:000096 d:000096 TOP   
c:0027 p:---- s:0095 b:0095 l:000094 d:000094 CFUNC  :require
c:0026 p:0011 s:0091 b:0091 l:000090 d:000090 TOP    /var/lib/gems/1.9.1/gems/wxruby-2.0.1-x86-linux/lib/wx.rb:12
c:0025 p:---- s:0088 b:0088 l:000087 d:000087 FINISH
c:0024 p:---- s:0086 b:0086 l:000085 d:000085 CFUNC  :require
c:0023 p:0011 s:0082 b:0082 l:00047c d:000081 EVAL   (irb):1
c:0022 p:---- s:0080 b:0080 l:000079 d:000079 FINISH
c:0021 p:---- s:0078 b:0078 l:000077 d:000077 CFUNC  :eval
c:0020 p:0027 s:0071 b:0071 l:000070 d:000070 METHOD /usr/lib/ruby/1.9.1/irb/workspace.rb:80
c:0019 p:0031 s:0064 b:0063 l:000062 d:000062 METHOD /usr/lib/ruby/1.9.1/irb/context.rb:218
c:0018 p:0030 s:0058 b:0058 l:001cec d:000057 BLOCK  /usr/lib/ruby/1.9.1/irb.rb:157
c:0017 p:0039 s:0050 b:0050 l:000049 d:000049 METHOD /usr/lib/ruby/1.9.1/irb.rb:271
c:0016 p:0011 s:0045 b:0045 l:001cec d:000044 BLOCK  /usr/lib/ruby/1.9.1/irb.rb:154
c:0015 p:0132 s:0041 b:0041 l:000024 d:000040 BLOCK  /usr/lib/ruby/1.9.1/irb/ruby-lex.rb:244
c:0014 p:---- s:0038 b:0038 l:000037 d:000037 FINISH
c:0013 p:---- s:0036 b:0036 l:000035 d:000035 CFUNC  :loop
c:0012 p:0009 s:0033 b:0033 l:000024 d:000032 BLOCK  /usr/lib/ruby/1.9.1/irb/ruby-lex.rb:230
c:0011 p:---- s:0031 b:0031 l:000030 d:000030 FINISH
c:0010 p:---- s:0029 b:0029 l:000028 d:000028 CFUNC  :catch
c:0009 p:0023 s:0025 b:0025 l:000024 d:000024 METHOD /usr/lib/ruby/1.9.1/irb/ruby-lex.rb:229
c:0008 p:0042 s:0022 b:0022 l:001cec d:001cec METHOD /usr/lib/ruby/1.9.1/irb.rb:153
c:0007 p:0011 s:0019 b:0019 l:000644 d:000018 BLOCK  /usr/lib/ruby/1.9.1/irb.rb:70
c:0006 p:---- s:0017 b:0017 l:000016 d:000016 FINISH
c:0005 p:---- s:0015 b:0015 l:000014 d:000014 CFUNC  :catch
c:0004 p:0174 s:0011 b:0011 l:000644 d:000644 METHOD /usr/lib/ruby/1.9.1/irb.rb:69
c:0003 p:0039 s:0006 b:0006 l:0018c4 d:001af4 EVAL   /usr/bin/irb1.9.1:12
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0018c4 d:0018c4 TOP   
-- Ruby level backtrace information-----------------------------------------
/var/lib/gems/1.9.1/gems/wxruby-2.0.1-x86-linux/lib/wx.rb:12:in `require'
/var/lib/gems/1.9.1/gems/wxruby-2.0.1-x86-linux/lib/wx.rb:12:in `'
(irb):1:in `require'
(irb):1:in `irb_binding'
/usr/lib/ruby/1.9.1/irb/workspace.rb:80:in `eval'
/usr/lib/ruby/1.9.1/irb/workspace.rb:80:in `evaluate'
/usr/lib/ruby/1.9.1/irb/context.rb:218:in `evaluate'
/usr/lib/ruby/1.9.1/irb.rb:157:in `block (2 levels) in eval_input'
/usr/lib/ruby/1.9.1/irb.rb:271:in `signal_status'
/usr/lib/ruby/1.9.1/irb.rb:154:in `block in eval_input'
/usr/lib/ruby/1.9.1/irb/ruby-lex.rb:244:in `block (2 levels) in each_top_level_statement'
/usr/lib/ruby/1.9.1/irb/ruby-lex.rb:230:in `loop'
/usr/lib/ruby/1.9.1/irb/ruby-lex.rb:230:in `block in each_top_level_statement'
/usr/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `catch'
/usr/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `each_top_level_statement'
/usr/lib/ruby/1.9.1/irb.rb:153:in `eval_input'
/usr/lib/ruby/1.9.1/irb.rb:70:in `block in start'
/usr/lib/ruby/1.9.1/irb.rb:69:in `catch'
/usr/lib/ruby/1.9.1/irb.rb:69:in `start'
/usr/bin/irb1.9.1:12:in `
' -- C level backtrace information ------------------------------------------- 0x6c7929 /usr/lib/ [0x6c7929] 0x5e092f /usr/lib/ [0x5e092f] 0x5e09ca /usr/lib/ [0x5e09ca] 0x5e0f0c /usr/lib/ [0x5e0f0c] 0x12a2cdc /var/lib/gems/1.9.1/gems/wxruby-2.0.1-x86-linux/lib/ [0x12a2cdc] 0x16da1fb /var/lib/gems/1.9.1/gems/wxruby-2.0.1-x86-linux/lib/ [0x16da1fb] 0x16db109 /var/lib/gems/1.9.1/gems/wxruby-2.0.1-x86-linux/lib/ [0x16db109] 0x5b722a /usr/lib/ [0x5b722a] 0x5e4ae8 /usr/lib/ [0x5e4ae8] 0x6b34ef /usr/lib/ [0x6b34ef] 0x5e5ad7 /usr/lib/ [0x5e5ad7] 0x5e5e06 /usr/lib/ [0x5e5e06] 0x6b4af3 /usr/lib/ [0x6b4af3] 0x6b4e84 /usr/lib/ [0x6b4e84] 0x6c117c /usr/lib/ [0x6c117c] 0x6bb673 /usr/lib/ [0x6bb673] 0x6beb46 /usr/lib/ [0x6beb46] 0x6bef0a /usr/lib/ [0x6bef0a] 0x5e4c8d /usr/lib/ [0x5e4c8d] 0x5e5b18 /usr/lib/ [0x5e5b18] 0x5e5e06 /usr/lib/ [0x5e5e06] 0x6b4af3 /usr/lib/ [0x6b4af3] 0x6b4e84 /usr/lib/ [0x6b4e84] 0x6c117c /usr/lib/ [0x6c117c] 0x6bb673 /usr/lib/ [0x6bb673] 0x6beb46 /usr/lib/ [0x6beb46] 0x6bfb1f /usr/lib/ [0x6bfb1f] 0x6c014c /usr/lib/ [0x6c014c] 0x6b4b18 /usr/lib/ [0x6b4b18] 0x6b4e84 /usr/lib/ [0x6b4e84] 0x6c117c /usr/lib/ [0x6c117c] 0x6bb673 /usr/lib/ [0x6bb673] 0x6beb46 /usr/lib/ [0x6beb46] 0x6c0640 /usr/lib/ [0x6c0640] 0x5e2379 /usr/lib/ [0x5e2379] 0x6b670c /usr/lib/ [0x6b670c] 0x6b4afd /usr/lib/ [0x6b4afd] 0x6b4e84 /usr/lib/ [0x6b4e84] 0x6c117c /usr/lib/ [0x6c117c] 0x6bb673 /usr/lib/ [0x6bb673] 0x6beb46 /usr/lib/ [0x6beb46] 0x6bf146 /usr/lib/ [0x6bf146] 0x6bf912 /usr/lib/ [0x6bf912] 0x6b4b18 /usr/lib/ [0x6b4b18] 0x6b4e84 /usr/lib/ [0x6b4e84] 0x6c117c /usr/lib/ [0x6c117c] 0x6bb673 /usr/lib/ [0x6bb673] 0x6beb46 /usr/lib/ [0x6beb46] 0x6bf146 /usr/lib/ [0x6bf146] 0x6bf912 /usr/lib/ [0x6bf912] 0x6b4b18 /usr/lib/ [0x6b4b18] 0x6b4e84 /usr/lib/ [0x6b4e84] 0x6c117c /usr/lib/ [0x6c117c] 0x6bb673 /usr/lib/ [0x6bb673] 0x6beb46 /usr/lib/ [0x6beb46] 0x6bedbb /usr/lib/ [0x6bedbb] 0x5e2c77 /usr/lib/ [0x5e2c77] 0x5e4276 /usr/lib/ [0x5e4276] 0x80487c8 irb1.9.1(main+0x68) [0x80487c8] 0x325bd6 /lib/tls/i686/cmov/ [0x325bd6] 0x80486c1 irb1.9.1() [0x80486c1] [NOTE] You may encounter a bug of Ruby interpreter. Bug reports are welcome. For details: Aborted

No comments:

Post a Comment