Ruby 1.8.6 Wxruby and Mac

Hi,

I’m trying to figure out how to get my application to work on a mac, but
I can’t seem to get passed the part of requiring the wxruby gem. For the
hell of it, I tried running the application on 1.8.7 and the gem loads
correctly, but some things don’t work in this version (as expected).

When trying to run this application in 1.8.6 I tried running it with the
same command which worked in 1.8.7 which was: arch -i386 ruby -rubygems
main.rb

This didn’t work, I got an error: BAD CPU TYPE

The next command I tried was: arch -i386 -x86_64 ruby -rubygems main.rb

That didn’t work either and I get a lovely, LoadError , “No suitable
image found.”

Any help with this would be greatly appreciated =)

Also some details: I’m using 2.01 wxruby and I’ve gotten this same issue
on both Mac OS X 10.6.6 Snow Leopard and 10.7 lion.

So tried compiling my own version of wxruby, by following the
instructions here:
http://wxruby.rubyforge.org/wiki/wiki.pl?InstallingFromSource

but now running into problems when I run rake on wxruby-2.0.1

lipo: can’t open input file:
/var/folders/00/0045uWgZFUaHAhYRvxnpzE+++TI/-Tmp-//cccKenmu.out (No such
file or directory)
rake aborted!
Command failed with status (1):

Chase W. wrote in post #1023716:

So tried compiling my own version of wxruby, by following the
instructions here:
http://wxruby.rubyforge.org/wiki/wiki.pl?InstallingFromSource

but now running into problems when I run rake on wxruby-2.0.1

lipo: can’t open input file:
/var/folders/00/0045uWgZFUaHAhYRvxnpzE+++TI/-Tmp-//cccKenmu.out (No such
file or directory)
rake aborted!
Command failed with status (1):

Unfortunately wxRuby and 64 bit Mac OS X don’t work well together. See
here:

http://www.ruby-forum.com/topic/1745353