# Distributing a ruby program

**URL:** <https://rubytalk.org/t/distributing-a-ruby-program/41571>\
**Category:** ruby-talk\
**Created:** [22 October 2007 13:01 UTC](https://rubytalk.org/t/distributing-a-ruby-program/41571 "2007-10-22T13:01:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_Reilly](https://avatars.discourse-cdn.com/v4/letter/t/9de0a6/32.png) [@Tom\_Reilly](https://rubytalk.org/u/Tom_Reilly)\
**Post date:** [22 October 2007 13:01 UTC](https://rubytalk.org/t/distributing-a-ruby-program/41571/1 "2007-10-22T13:01:48Z")

</div>

I want to distribute a ruby program to 4 offices where I work.

How do I create a minimum subset of the ruby distribution such that it contains only the modules and ruby system that I need so that my program can run?  
Thanks

Tom Reilly

---

<div class="post-metadata">

**Author:** ![Virumoz](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@Virumoz](https://rubytalk.org/u/Virumoz)\
**Post date:** [22 October 2007 17:15 UTC](https://rubytalk.org/t/distributing-a-ruby-program/41571/2 "2007-10-22T17:15:02Z")

</div>

Hi Tom,

> How do I create a minimum subset of the ruby distribution such that it  
> contains only the modules and ruby system that I need so that my program  
> can run?

for exactly the same problem I use "RubyScript2Exe" and it's  
derivates from Erik Veenstra:

\<[http://www.erikveen.dds.nl/rubyscript2exe/&gt](http://www.erikveen.dds.nl/rubyscript2exe/&gt);

Is a little complex first, but you get used to it. I assumed that  
you  
want to have a Windows executable containing your scripts, the Ruby  
interpreter and all actually used libs.

I once developed a Ruby app with FXRuby frontend using Linux,  
ported and packaged it using a Windows installation, burned it to  
CD and gave it to a customer. It works even from CD/USB-Stick  
because  
it unpacks part of the Exe in the TEMP directory and starts from  
there.

virumoz

---

<div class="post-metadata">

**Author:** ![Virumoz](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@Virumoz](https://rubytalk.org/u/Virumoz)\
**Post date:** [22 October 2007 17:25 UTC](https://rubytalk.org/t/distributing-a-ruby-program/41571/3 "2007-10-22T17:25:01Z")

</div>

Sry for the odd linebreaks, and:  
it's --\> its  
😉  
virumoz
