I’m just beginning to learn wxRuby. I’m working on a WinXP sp3 machine,
and I expect to test Linux using VirtualBox and Ubuntu and to test Mac
OS X 10.5 on my wife’s Mac mini.
On her Mac, I got Ruby 1.9.1p376 installed following Dan Benjamin’s
instructions at Dan Benjamin
(Yes, “which ruby” yields /usr/local/bin/ruby and “ruby -v” results in
ruby 1.9.1p376 (2009-12-07 rev 26041) [i386_darwin9.8.0] )
I then followed his instructions for installing RubyGems. And then
installed the wxRuby gem.
My simple program creating 4 tall, colored buttons (I’ve put a zip of
this at
if you want to see it) worked exactly as expected on WinXP. I’m
attaching a screen capture showing what it looks like on Windows.
On OS X, the program runs performs the few simple actions I built in,
but it has almost none of the button colors and sizes spec’d. (Sorry I
don’t have a capture of the result.)
Since this is my first trial, I haven’t really thought through the best
way to represent a design that Windows, MacOS and Linux can all
represent unambiguously. So if you look at my code and think, “Wow,
that’s not the way to do this!” I won’t be surprised.
However, I’m not really sure I have got wxRuby installed properly on the
Mac. Do I need to install wxWidgets independently? (I did install
wxWidgets separately on WinXP.)
Since I have only sporadic access to this Mac, I haven’t yet tried
running the example files and comparing the results with what I see on
Windows (haven’t gotten to Ubuntu yet either).
Any thoughts on this process so far? Any obvious missteps I ought to
correct? Any guidance on how to confirm I have got everything needed for
things to run properly?
Thanks,
Roger S.
rsperberg at gmail