wxruby install problem

P

Pen Ttt

pt@pt-laptop:~$ sudo gem install wxruby
[sudo] password for pt:
Successfully installed wxruby-2.0.1-x86-linux
1 gem installed
Installing ri documentation for wxruby-2.0.1-x86-linux...
Updating class cache with 2751 classes...
Installing RDoc documentation for wxruby-2.0.1-x86-linux...
pt@pt-laptop:~$ irb
irb(main):001:0> require 'wxruby'
LoadError: no such file to load -- wxruby
from (irb):1:in `require'
from (irb):1
from /usr/local/ruby/bin/irb:12:in `<main>'
irb(main):002:0>

could you tell me how to solvr this problem?
 
P

Pen Ttt

pt@pt-laptop:~$ sudo gem install wx
ERROR: could not find gem wx locally or in a repository
pt@pt-laptop:~$ irb
irb(main):001:0> require "wx"
LoadError:
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so:
symbol _ZN13wxAuiNotebook14ShowWindowMenuEv, version WXU_2.8.5 not
defined in file libwx_gtk2u_aui-2.8.so.0 with link time reference -
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so
from
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/wxruby-2.0.1-x86-linux/lib/wx.rb:12:in
`require'
from
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/wxruby-2.0.1-x86-linux/lib/wx.rb:12:in
`<top (required)>'
from (irb):1:in `require'
from (irb):1
from /usr/local/ruby/bin/irb:12:in `<main>'
irb(main):002:0>

what's matter?
 
M

Marvin Gülker

Pen said:
pt@pt-laptop:~$ sudo gem install wx
ERROR: could not find gem wx locally or in a repository
pt@pt-laptop:~$ irb
irb(main):001:0> require "wx"
LoadError:
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so:
symbol _ZN13wxAuiNotebook14ShowWindowMenuEv, version WXU_2.8.5 not
defined in file libwx_gtk2u_aui-2.8.so.0 with link time reference -
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/wxruby-2.0.1-x86-linux/lib/wxruby2.so
from
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/wxruby-2.0.1-x86-linux/lib/wx.rb:12:in
`require'
from
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/wxruby-2.0.1-x86-linux/lib/wx.rb:12:in
`<top (required)>'
from (irb):1:in `require'
from (irb):1
from /usr/local/ruby/bin/irb:12:in `<main>'
irb(main):002:0>

what's matter?

Looks like you are using Ubuntu Karmic... wxRuby's binary gem doesn't
work with Ubuntu Karmic Koala, so you'll have to compile it yourself:
http://wxruby.rubyforge.org/wiki/wiki.pl?BuildingOnTopOfLinuxDistroPackages

Notice the --enable-shared option when compiling Ruby!

Marvin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,690
Latest member
MacGyver

Latest Threads

Top