# Crear executable aplication

**URL:** <https://www.ruby-forum.com/t/crear-executable-aplication/210890>\
**Category:** Ruby\
**Created:** [August 19, 2011, 5:37pm UTC](https://www.ruby-forum.com/t/crear-executable-aplication/210890 "2011-08-19T17:37:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [August 19, 2011, 5:37pm UTC](https://www.ruby-forum.com/t/crear-executable-aplication/210890/1 "2011-08-19T17:37:19Z")

</div>

hello

How can I to create a executable file of a ruby program to go with it to  
a machine that haven’t installing ruby?

---

<div class="post-metadata">

**Author:** ![ybir\_g](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/76d3ee/32.png) [@ybir\_g](https://www.ruby-forum.com/u/ybir_g)\
**Post date:** [August 19, 2011, 5:42pm UTC](https://www.ruby-forum.com/t/crear-executable-aplication/210890/2 "2011-08-19T17:42:58Z")

</div>

On Fri, Aug 19, 2011 at 5:37 PM, Ybir G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> hello
> 
> How can I to create a executable file of a ruby program to go with it to  
> a machine that haven’t installing ruby?

> **[LMGTFY](https://lmgtfy.com/?q=ruby+create+executable)**
>
> Let Me Google That For You (LMGTFY): for all those people who find it more convenient to bother you with their question rather than search it for themselves.

–  
Phillip G.

[phgaw.posterous.com](http://phgaw.posterous.com) | [twitter.com/phgaw](http://twitter.com/phgaw) | gplus.to/phgaw

A method of solution is perfect if we can forsee from the start,  
and even prove, that following that method we shall attain our aim.  
– Leibniz

---

<div class="post-metadata">

**Author:** ![ybir\_g](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/76d3ee/32.png) [@ybir\_g](https://www.ruby-forum.com/u/ybir_g)\
**Post date:** [August 19, 2011, 5:48pm UTC](https://www.ruby-forum.com/t/crear-executable-aplication/210890/3 "2011-08-19T17:48:31Z")

</div>

Because Google search actually gives all the less than perfect  
solutions first, let me also mention the Ocra gem.

[https://rubygems.org/gems/ocra](https://rubygems.org/gems/ocra)

– Matma R.

2011/8/19 Phillip G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![ybir\_g](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/76d3ee/32.png) [@ybir\_g](https://www.ruby-forum.com/u/ybir_g)\
**Post date:** [August 19, 2011, 5:49pm UTC](https://www.ruby-forum.com/t/crear-executable-aplication/210890/4 "2011-08-19T17:49:46Z")

</div>

On 8/19/2011 10:37, Yábir G. wrote:

> hello
> 
> How can I to create a executable file of a ruby program to go with it to  
> a machine that haven’t installing ruby?

Assuming your target platform is Windows, I hear that ocra  
([http://rubyforge.org/projects/ocra](http://rubyforge.org/projects/ocra)) is the currently recommended tool.  
I’ve not tried it myself though.

I’m not sure what to suggest if your target platform is something other  
than Windows.

-Jeremy

---

<div class="post-metadata">

**Author:** ![ybir\_g](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/76d3ee/32.png) [@ybir\_g](https://www.ruby-forum.com/u/ybir_g)\
**Post date:** [August 20, 2011, 11:43pm UTC](https://www.ruby-forum.com/t/crear-executable-aplication/210890/5 "2011-08-20T23:43:02Z")

</div>

Nick K. wrote in post #1017575:

> Is Ocra the recommended tool? Not too long ago I was following  
> vertiginous’  
> exerb-mingw: [GitHub - vertiginous/exerb-mingw: Exerb support for mingw/rubyinstaller · GitHub](https://github.com/vertiginous/exerb-mingw), which is a fork  
> from the older, unmaintained version.

Nick,

Both Ocra and exerb are valid tools, it depends on the type of  
executable you want to create.

> He even wrote a blog post about which tool might suit your needs better:

[http://vert.igino.us/2011/01/05/exerb-101-building-windows-executables-with-ruby/](http://vert.igino.us/2011/01/05/exerb-101-building-windows-executables-with-ruby/)

> 

Since the original poster do not mention his needs, is not clear which  
one is going to fit better those needs.

Exerb requires a higher understanding of what you’re doing, which is not  
good for newcomers that “just want and exe”.

–  
Luis L.

---

<div class="post-metadata">

**Author:** ![ybir\_g](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/76d3ee/32.png) [@ybir\_g](https://www.ruby-forum.com/u/ybir_g)\
**Post date:** [August 19, 2011, 9:53pm UTC](https://www.ruby-forum.com/t/crear-executable-aplication/210890/6 "2011-08-19T21:53:16Z")

</div>

Is Ocra the recommended tool? Not too long ago I was following  
vertiginous’  
exerb-mingw: [GitHub - vertiginous/exerb-mingw: Exerb support for mingw/rubyinstaller](https://github.com/vertiginous/exerb-mingw), which is a fork  
from the older, unmaintained version.

He even wrote a blog post about which tool might suit your needs better:  
[http://vert.igino.us/2011/01/05/exerb-101-building-windows-executables-with-ruby/](http://vert.igino.us/2011/01/05/exerb-101-building-windows-executables-with-ruby/)

-Nick K.
