From: Daniel Lewis Date: 2005-09-29T19:07:11+09:00 Subject: Re: wxRuby problem on Ubuntu I have Ubuntu-hoary and have Ruby 1.8 installed (with WxRuby), I have managed to get it all up and running, I am not 100% sure what the problem is. So: Can you run a program that looks a little bit like this: require 'wxruby' include Wx puts "hello world" and do your $PATH settings point to WxRuby? It took me a while to find what was going wrong with my Wx installations on Ubuntu... i had lots of problems and errors. My WxRuby programs now work completely fine on both Windows (XP) and Ubuntu. I am yet to test it on my iBook. Hope to help further, Daniel. On 29/09/05, RaW wrote: > 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: > > require "wxruby" > include Wx > > class MinimalApp < App > def on_init > Frame.new(nil, -1, "The Bare Minimum").show() > end > end > > > MinimalApp.new.main_loop > > > I am new in ruby so anyone can help me solve this problem ? > Thanks in advance. > > -- > RaW > >