Forum: wxRuby Ruby 1.8.6 Wxruby and Mac

E135275ab339a62814760df437b5726c?d=identicon&s=25 Chase Wilson (remosewa)
on 2011-09-23 21:27
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 =)
E135275ab339a62814760df437b5726c?d=identicon&s=25 Chase Wilson (remosewa)
on 2011-09-23 21:30
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.
E135275ab339a62814760df437b5726c?d=identicon&s=25 Chase Wilson (remosewa)
on 2011-09-26 03:06
So tried compiling my own version of wxruby, by following the
instructions here:
http://wxruby.rubyforge.org/wiki/wiki.pl?Installin...

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):
30e6e9552f9217240322704872ebeca0?d=identicon&s=25 Fred Kohler (fred-kohler)
on 2011-09-26 23:11
Chase Wilson wrote in post #1023716:
> So tried compiling my own version of wxruby, by following the
> instructions here:
> http://wxruby.rubyforge.org/wiki/wiki.pl?Installin...
>
> 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
This topic is locked and can not be replied to.