# Ruby Executable Issues

**URL:** <https://www.ruby-forum.com/t/ruby-executable-issues/100609>\
**Category:** Ruby\
**Created:** [July 30, 2006, 9:23pm UTC](https://www.ruby-forum.com/t/ruby-executable-issues/100609 "2006-07-30T21:23:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skeets](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8e8cbc/32.png) [@Skeets](https://www.ruby-forum.com/u/Skeets)\
**Post date:** [July 30, 2006, 9:23pm UTC](https://www.ruby-forum.com/t/ruby-executable-issues/100609/1 "2006-07-30T21:23:18Z")

</div>

hi all,

i’m creating a program and i’d like it to run as a standalone  
executable on any of the various platforms.

i dev in linux, but my first program is for a windows friend - yeah, i  
have some. 😉

i’d like to create an executable for windows - and i understand  
rubyscript2exe can do exactly that. however, i also understand that  
the program user would still have to have ruby installed on their  
computer, in addition to the the executable i would create.

i’ve been reading up on allinoneruby, and it appears to be just ruby,  
with no application.

can i somehow combine these two to get a truly standalone application?

is there a better way to achieve standalone executable status (windows  
first, but i’m still interested in how to do so on linux and mac).

tia…

---

<div class="post-metadata">

**Author:** ![Skeets](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8e8cbc/32.png) [@Skeets](https://www.ruby-forum.com/u/Skeets)\
**Post date:** [July 31, 2006, 12:23am UTC](https://www.ruby-forum.com/t/ruby-executable-issues/100609/2 "2006-07-31T00:23:04Z")

</div>

N

On 7/30/06, Skeets [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> rubyscript2exe can do exactly that. however, i also understand that  
> the program user would still have to have ruby installed on their  
> computer, in addition to the the executable i would create.

Not that I have experienced. I’ve sent exe’s compilied with  
rubyscript2exe  
to other people on using Windows that did not have Ruby installed, and  
they  
never noticed a problem. I’ve only compiled on Windows for Windows  
though,  
and it is looking like from the website that you can’t compile a .exe  
for  
Windows when under Linux (this seems to be confirmed by a program I just  
compiled under Ubuntu with rubyscript2exe. It gave me a script, not a  
.exe).

Hope that helps,  
Ethan P.

---

<div class="post-metadata">

**Author:** ![Skeets](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8e8cbc/32.png) [@Skeets](https://www.ruby-forum.com/u/Skeets)\
**Post date:** [July 31, 2006, 12:44pm UTC](https://www.ruby-forum.com/t/ruby-executable-issues/100609/3 "2006-07-31T12:44:34Z")

</div>

> i’d like to create an executable for windows - and i  
> understand rubyscript2exe can do exactly that. however, i  
> also understand that the program user would still have to  
> have ruby installed on their computer, in addition to the the  
> executable i would create.

If the author of RubyScript2Exe says that it can be used to  
create standalone applications (“…for it collects all  
necessary files to run your script on an other machine: the  
Ruby script, the Ruby interpreter and the Ruby runtime  
library…”), how can you understand the opposite? He’s even  
made a nice diagram [1]!

Maybe the author wasn’t explicit enough. If he wasn’t, just let  
him know. He is used to receive mails from people asking things  
which he already explained on his site. He probably doesn’t  
explain things very well… ;]

> can i somehow combine these two to get a truly standalone  
> application?

Yes, you can:

c:\> ruby allinoneruby.rb  
c:\> allinoneruby rubyscript2exe.rb test.rb

(Just to be clear: this is just a joke… Just to be clear: the  
second part is a joke, the first one was dead serious…)

gegroet,  
Erik V. - [http://www.erikveen.dds.nl/](http://www.erikveen.dds.nl/)

[1]  
[http://www.erikveen.dds.nl/distributingrubyapplications/index.html#1.0.0](http://www.erikveen.dds.nl/distributingrubyapplications/index.html#1.0.0)
