# Ruby 1.8.6 Wxruby and Mac

**URL:** <https://www.ruby-forum.com/t/ruby-1-8-6-wxruby-and-mac/212159>\
**Category:** wxRuby\
**Created:** [September 23, 2011, 9:27pm UTC](https://www.ruby-forum.com/t/ruby-1-8-6-wxruby-and-mac/212159 "2011-09-23T21:27:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [September 23, 2011, 9:27pm UTC](https://www.ruby-forum.com/t/ruby-1-8-6-wxruby-and-mac/212159/1 "2011-09-23T21:27:11Z")

</div>

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 =)

---

<div class="post-metadata">

**Author:** ![remosewa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@remosewa](https://www.ruby-forum.com/u/remosewa)\
**Post date:** [September 23, 2011, 9:30pm UTC](https://www.ruby-forum.com/t/ruby-1-8-6-wxruby-and-mac/212159/2 "2011-09-23T21:30:21Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![remosewa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@remosewa](https://www.ruby-forum.com/u/remosewa)\
**Post date:** [September 26, 2011, 3:06am UTC](https://www.ruby-forum.com/t/ruby-1-8-6-wxruby-and-mac/212159/3 "2011-09-26T03:06:12Z")

</div>

So tried compiling my own version of wxruby, by following the  
instructions here:  
[http://wxruby.rubyforge.org/wiki/wiki.pl?InstallingFromSource](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](https://cccKenmu.out) (No such  
file or directory)  
rake aborted!  
Command failed with status (1):

---

<div class="post-metadata">

**Author:** ![remosewa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@remosewa](https://www.ruby-forum.com/u/remosewa)\
**Post date:** [September 26, 2011, 11:11pm UTC](https://www.ruby-forum.com/t/ruby-1-8-6-wxruby-and-mac/212159/4 "2011-09-26T23:11:56Z")

</div>

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](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](https://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](http://www.ruby-forum.com/topic/1745353)
