R
RaW
Hello,
I've just wanted to test wxRuby and have a problem.
I use UbuntuLinux Hoary 5.04 and following
http://wxruby.rubyforge.org/wiki/wiki.pl?Installation
I have installed packages for Debian:
ruby1.8-dev
libwxbase2.4-dev
libwxbase2.4
libwxgtk2.4-contrib-dev
Everything seems to go right but the sample code from
http://wxruby.rubyforge.org/wiki/wiki.pl?Getting_Started
generates an error:
$ ruby1.8 wxruby.rb
../wxruby.rb:2: uninitialized constant Wx (NameError)
from wxruby.rb:1:in `require'
from wxruby.rb:1
This is the code:
<code>
require "wxruby"
include Wx
class MinimalApp < App
def on_init
Frame.new(nil, -1, "The Bare Minimum").show()
end
end
MinimalApp.new.main_loop
</code>
I am new in ruby so anyone can help me solve this problem ?
Thanks in advance.
I've just wanted to test wxRuby and have a problem.
I use UbuntuLinux Hoary 5.04 and following
http://wxruby.rubyforge.org/wiki/wiki.pl?Installation
I have installed packages for Debian:
ruby1.8-dev
libwxbase2.4-dev
libwxbase2.4
libwxgtk2.4-contrib-dev
Everything seems to go right but the sample code from
http://wxruby.rubyforge.org/wiki/wiki.pl?Getting_Started
generates an error:
$ ruby1.8 wxruby.rb
../wxruby.rb:2: uninitialized constant Wx (NameError)
from wxruby.rb:1:in `require'
from wxruby.rb:1
This is the code:
<code>
require "wxruby"
include Wx
class MinimalApp < App
def on_init
Frame.new(nil, -1, "The Bare Minimum").show()
end
end
MinimalApp.new.main_loop
</code>
I am new in ruby so anyone can help me solve this problem ?
Thanks in advance.