# "Portable" Ruby

**URL:** <https://www.ruby-forum.com/t/portable-ruby/91407>\
**Category:** Ruby\
**Created:** [April 8, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/portable-ruby/91407 "2007-04-08T16:24:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_TSRichter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e5b9ba/32.png) [@Michael\_TSRichter](https://www.ruby-forum.com/u/Michael_TSRichter)\
**Post date:** [April 8, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/portable-ruby/91407/1 "2007-04-08T16:24:29Z")

</div>

I’m wondering if it’s feasible at all to package a Ruby environment as a  
“Portable App” (along the lines of [http://www.portableapps.com](http://www.portableapps.com)). The  
idea is to have a fully-functional Ruby environment that executes  
entirely from removable media leaving no footprint whatsoever on the  
machine it’s run on – no registry entries, no configuration files, etc.

What I really want this for is a portable JunebugWiki that I can run  
from my USB stick without worrying about whether or not (the latter  
being far more likely!) Ruby is installed on the machines I’d use it on.

---

<div class="post-metadata">

**Author:** ![Michael\_TSRichter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e5b9ba/32.png) [@Michael\_TSRichter](https://www.ruby-forum.com/u/Michael_TSRichter)\
**Post date:** [April 8, 2007, 4:38pm UTC](https://www.ruby-forum.com/t/portable-ruby/91407/2 "2007-04-08T16:38:31Z")

</div>

Both are quite easy to do.

Since it’s a portable app you probably want a windows distribution.

AFAIK the distribution from InstantRails would work as “portble” out of  
the  
box.

It would take some tweaking (mainly a bat file for the environment  
variables) to get the OneClickRuby to become portable.

Have you heard of Ruby2Exe?

Aur S.

[http://RubyMentor.rubyforge.org/](http://RubyMentor.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![Michael\_TSRichter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e5b9ba/32.png) [@Michael\_TSRichter](https://www.ruby-forum.com/u/Michael_TSRichter)\
**Post date:** [April 9, 2007, 12:36am UTC](https://www.ruby-forum.com/t/portable-ruby/91407/3 "2007-04-09T00:36:35Z")

</div>

On Apr 8, 10:23 am, “Michael T. Richter” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> –  
> Michael T. Richter [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) (GoogleTalk:  
> removed\_email\_address@domain.invalid)  
> In his errors a man is true to type. Observe the errors and you will  
> know the man. (å­”å¤«å­)
> 
> signature.asc  
> 1KDownload

RubyScript2Exe might meet your needs:

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

David

> **[Ruby on Windows](http://rubyonwindows.blogspot.com)**
>
> On using the Ruby programming language on the Microsoft Windows platform

---

<div class="post-metadata">

**Author:** ![Michael\_TSRichter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e5b9ba/32.png) [@Michael\_TSRichter](https://www.ruby-forum.com/u/Michael_TSRichter)\
**Post date:** [April 10, 2007, 4:12pm UTC](https://www.ruby-forum.com/t/portable-ruby/91407/4 "2007-04-10T16:12:16Z")

</div>

On 4/9/07, barjunk [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > 
> 
> Couldn’t you do something similar to InstantRails? I think it is  
> windows only…but maybe it will give you ideas.

Well PortableApps is windows only anyway unfortunately.

Some guy described how to here. He used InstantRails or a variant of it.

[http://ruby.about.com/od/resources/ss/portable\_ruby.htm](http://ruby.about.com/od/resources/ss/portable_ruby.htm)  
[http://ruby.about.com/od/resources/qt/portable\_rails.htm](http://ruby.about.com/od/resources/qt/portable_rails.htm)

Been meaning to do this kind of thing myself. It could be very handy  
for teaching Ruby/Rails. Y’know bring your educational install around  
with  
you and such.

---

<div class="post-metadata">

**Author:** ![Michael\_TSRichter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e5b9ba/32.png) [@Michael\_TSRichter](https://www.ruby-forum.com/u/Michael_TSRichter)\
**Post date:** [April 9, 2007, 3:20am UTC](https://www.ruby-forum.com/t/portable-ruby/91407/5 "2007-04-09T03:20:43Z")

</div>

On Apr 8, 6:23 am, “Michael T. Richter” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> –  
> Michael T. Richter [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) (GoogleTalk:  
> removed\_email\_address@domain.invalid)  
> In his errors a man is true to type. Observe the errors and you will  
> know the man. (å­”å¤«å­)
> 
> signature.asc  
> 1KDownload

Couldn’t you do something similar to InstantRails? I think it is  
windows only…but maybe it will give you ideas.

Mike B.

---

<div class="post-metadata">

**Author:** ![Michael\_TSRichter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e5b9ba/32.png) [@Michael\_TSRichter](https://www.ruby-forum.com/u/Michael_TSRichter)\
**Post date:** [April 11, 2007, 9:57am UTC](https://www.ruby-forum.com/t/portable-ruby/91407/6 "2007-04-11T09:57:10Z")

</div>

On Sunday 08 April 2007 14:23, Michael T. Richter wrote:

> I’m wondering if it’s feasible at all to package a Ruby environment as a  
> “Portable App” (along the lines of [http://www.portableapps.com](http://www.portableapps.com)). The  
> idea is to have a fully-functional Ruby environment that executes  
> entirely from removable media leaving no footprint whatsoever on the  
> machine it’s run on – no registry entries, no configuration files, etc.
> 
> What I really want this for is a portable JunebugWiki that I can run  
> from my USB stick without worrying about whether or not (the latter  
> being far more likely!) Ruby is installed on the machines I’d use it on.  
> Google for:

ruby2exe  
instantRails

also you can just copy full ruby interpreter to your usb stick, but if  
you  
want wiki instantrails is much faster/easier
