Some good news…
Alex, your method didn’t work for me immediately but I found a method
that works for me and may help others.
I have a MacBook Pro (64-bit) running OS X 10.6.
Like others, I wanted to run Ruby 1.9.2 (latest) and wxRuby 2.0.1
I use RVM to install Ruby 1.9.2 (and manage my ruby versions).
By default, RVM builds the Ruby 64-bit version (only).
I finally found a post that indicates how to build both 32-bit and
64-bit versions of Ruby.
Briefly, here’s how users can get both built:
rvm install ruby-1.9.2-head -C --with-arch=x86_64,i386
Here’s how to check what you have:
which ruby | perl -pe ‘s|^.*/||’
(Which will produce output like this:)
ruby: Mach-O universal binary with 2 architectures
ruby (for architecture x86_64): Mach-O 64-bit executable x86_64
ruby (for architecture i386): Mach-O executable i386
And, download this gem:
Now, install the gem (no sudo required):
(Note, you may want to cd to your Downloads folder.)
gem install wxruby-ruby19-2.0.1-x86-darwin-9
Successfully installed wxruby-ruby19-2.0.1-x86-darwin-9
Create a wxruby test script (wxtest.rb):
#!/usr/bin/env arch -i386 ruby
frame = Frame.new(nil, :title => ‘So far, so good…’)
And run it:
Ok, so this particular working set produced a window.
So, we (or I anyway) have a way to proceed.
Alex - I hope this somehow helps you find out what the problem
(32-bit vs 64-bit) might be. Any thoughts?