Sunday, November 14, 2010

Installing wxRuby on Windows

1. Installation of wxRuby on Windows
>gem install wxruby
Successfully installed wxruby-2.0.1-x86-mingw32
1 gem installed
Installing ri documentation for wxruby-2.0.1-x86-mingw32...
Installing RDoc documentation for wxruby-2.0.1-x86-mingw32...

2. But it gets an error when running wxRuby in Ruby 1.9.2
irb(main):001:0> require 'wx'
The error message window opens and says that msvcrt-ruby18.dll was not found.

3. I reinstall wxRuby using its an installer (in stead of gem install).
Download and execute:
from It automatically installs Ruby 1.9.1 with it.
C:\>ruby -v
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]
irb(main):001:0> require 'wx'
=> true
irb(main):002:0> exit
So currently wxRuby is not ready for the latest Ruby (1.9.2), you have to use 1.9.1 for now. This is still better than the situation in Ubuntu as wxRuby in Ubuntu runs only in 1.8.7.

1 comment:

  1. Found this through google, but I wanted to let you know that
    gem install wxruby-ruby19
    installs it for Ruby 1.9 on Windows. I did this last September and have been with it ever since.