From: "Marvin Gülker" Date: 2010-05-10T20:42:22+09:00 Subject: Re: wxruby2 - Error Message Ivo Roupa wrote: > Hi all > > I don't understand what's going wrong when I try to use the wxruby2... > > I followed the http://wxruby.rubyforge.org/wiki/wiki.pl instructions but > I always get this error when I run the following code: > > > require "wxruby" > require "rubygems" > include Wx > > > class MinimalApp < App > def on_init > Frame.new(nil, -1, "The Bare Minimum").show() > end > end > > > MinimalApp.new.main_loop > > > C:/Documentos/Ruby Scripts/form_01/lib/main.rb:1:in `require': no such > file > to load -- wxruby (LoadError) > from C:/Documentos/Ruby Scripts/form_01/lib/main.rb:1:in > `
' > > > I have ruby 1.9.1,Windows XP sp3 and I'm using NetBeans 6.8. > > Thanks in advanced for any help > > Ivo Roupa Try require "wx" instead of require "wxruby" And move the require "rubygems" before the require "wx" statement. Marvin -- Posted via http://www.ruby-forum.com/.