I copied the sample code from wxRuby documentation and trying to run on
my IDE (Rubymibe), but it is giving errors. The code I am trying is
below:
=========== [CODE] =============
require “wx”
include Wx
class MainWindow < App
def on_init
Frame.new(nil, 0).show()
end
end
MinimalApp.new(MainWindow)
The errors are below:
================= [Errors] ==========================
F:\Ruby193\bin\ruby.exe -e
$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)
C:/RubyProjects/RubyStock/Views/MainWindow
F:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require': 126: The specified module could not be found. - F:/Ruby193/lib/ruby/gems/1.9.1/gems/wxruby-2.0.1-x86-mingw32/lib/wxruby2.so (LoadError) from F:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire’
from
F:/Ruby193/lib/ruby/gems/1.9.1/gems/wxruby-2.0.1-x86-mingw32/lib/wx.rb:12:in
<top (required)>' from F:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:inrequire’
from
F:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in
rescue in require' from F:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:inrequire’
from C:/RubyProjects/RubyStock/Views/MainWindow:1:in <top (required)>' from -e:1:inload’
from -e:1:in `’
Process finished with exit code 1
How to get rid of these errors and what this error means?