# My program "RubyPack"

**URL:** <https://www.ruby-forum.com/t/my-program-rubypack/172575>\
**Category:** Ruby\
**Created:** [July 23, 2009, 2:54pm UTC](https://www.ruby-forum.com/t/my-program-rubypack/172575 "2009-07-23T14:54:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![graycardinal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/54ee81/32.png) [@graycardinal](https://www.ruby-forum.com/u/graycardinal)\
**Post date:** [July 23, 2009, 2:54pm UTC](https://www.ruby-forum.com/t/my-program-rubypack/172575/1 "2009-07-23T14:54:38Z")

</div>

Hello !

RubyPack

Recently I’ve started to develop software using Ruby. It was terrible  
that I had to install (as root) all apps into some special directory.  
Another way was just to join all files into one (something like “$ cat  
./\*.rb \>myprog”), but I’ve found prettier method:

The idea of my programme is to pack all files and then to zip. First  
line (how to execute) will contain path to my programme (like any  
script).

To use it we have to copy “rbz” to any directory of “$PATH” (I use  
~/bin, you could work with /usr/local/bin).

To build .rbz file you have to:

$ rbz pack   
$ chmod a+x

Now you can start your application like any other:  
$ ./

Copy it to $PATH and enjoy 😉

You can get RubyPack from [rubypack download | SourceForge.net](http://sf.net/projects/rubypack)

---

<div class="post-metadata">

**Author:** ![graycardinal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/54ee81/32.png) [@graycardinal](https://www.ruby-forum.com/u/graycardinal)\
**Post date:** [July 23, 2009, 7:44pm UTC](https://www.ruby-forum.com/t/my-program-rubypack/172575/2 "2009-07-23T19:44:51Z")

</div>

Oleg I. wrote:

> You can get RubyPack from [rubypack download | SourceForge.net](http://sf.net/projects/rubypack)

There are also:

[http://www.erikveen.dds.nl/tar2rubyscript/](http://www.erikveen.dds.nl/tar2rubyscript/)  
[http://www.erikveen.dds.nl/rubyscript2exe/](http://www.erikveen.dds.nl/rubyscript2exe/)

though these may not be currently maintained (doc has dates 2 yrs old).

If you’re program is pure ruby (.rb files, and no .so), then you can use  
one of these:

[http://raa.ruby-lang.org/project/darb](http://raa.ruby-lang.org/project/darb) (my project)  
[eigenclass.org](http://eigenclass.org/hiki/pure+ruby+compiler)

The latter two have the advantage that, when running the program, they  
don’t have to unpack anything to temp dirs.
