# Compiling Ruby scripts for distribution to Windows and OS X

**URL:** <https://www.ruby-forum.com/t/compiling-ruby-scripts-for-distribution-to-windows-and-os-x/173215>\
**Category:** Ruby\
**Created:** [August 5, 2009, 3:10am UTC](https://www.ruby-forum.com/t/compiling-ruby-scripts-for-distribution-to-windows-and-os-x/173215 "2009-08-05T03:10:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dezrtdude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f4b2a3/32.png) [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Post date:** [August 5, 2009, 3:10am UTC](https://www.ruby-forum.com/t/compiling-ruby-scripts-for-distribution-to-windows-and-os-x/173215/1 "2009-08-05T03:10:41Z")

</div>

Hi All,

I need to create a binary from ruby scripts for both Windows and OS  
X. I need it to include all the necessary gems, etc. I’ve got OCRA  
working for Windows, however I need something for OS X. Ruby2Exe was  
supposed to have Darwin support, but, word is, it doesn’t support the  
latest gems and whatnot.

Any ideas?

Best.

---

<div class="post-metadata">

**Author:** ![dezrtdude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f4b2a3/32.png) [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Post date:** [August 5, 2009, 3:22am UTC](https://www.ruby-forum.com/t/compiling-ruby-scripts-for-distribution-to-windows-and-os-x/173215/2 "2009-08-05T03:22:23Z")

</div>

On Aug 4, 10:08 pm, gberz3 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi All,
> 
> I need to create a binary from ruby scripts for both Windows and OS  
> X. I need it to include all the necessary gems, etc. I’ve got OCRA  
> working for Windows, however I need something for OS X. Ruby2Exe was  
> supposed to have Darwin support, but, word is, it doesn’t support the  
> latest gems and whatnot.
> 
> Any ideas?

Work with OCRA developer to create a native OSX stub, which is written  
in C.

Sorry, couldn’t resist 🙂

---

<div class="post-metadata">

**Author:** ![dezrtdude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f4b2a3/32.png) [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Post date:** [August 5, 2009, 11:20pm UTC](https://www.ruby-forum.com/t/compiling-ruby-scripts-for-distribution-to-windows-and-os-x/173215/3 "2009-08-05T23:20:36Z")

</div>

On Aug 4, 9:17 pm, Luis L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Any ideas?
> 
> Work with OCRA developer to create a native OSX stub, which is written  
> in C.
> 
> Sorry, couldn’t resist 🙂
> 
> –  
> Luis L.

There;s “crate” google crate + ruby

Hope it helps

---

<div class="post-metadata">

**Author:** ![dezrtdude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f4b2a3/32.png) [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Post date:** [August 6, 2009, 8:20am UTC](https://www.ruby-forum.com/t/compiling-ruby-scripts-for-distribution-to-windows-and-os-x/173215/4 "2009-08-06T08:20:49Z")

</div>

On Aug 5, 5:18 pm, bbiker [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > I need to create a binary from ruby scripts for both Windows and OS  
> > > Sorry, couldn’t resist 🙂
> 
> > –  
> > Luis L.
> 
> There;s “crate” google crate + ruby
> 
> Hope it helps

Thanks, I read over the “tutorial” page and the product looks nice.  
However, the example seems to be too specific. Any idea where I can  
find more generic information on the usage? I’ve emailed Jeremy, but  
I’d assume he’s a fairly busy guy.
