# MInimal Ruby Distribution with app

**URL:** <https://rubytalk.org/t/minimal-ruby-distribution-with-app/20504>\
**Category:** ruby-talk\
**Created:** [30 August 2005 20:26 UTC](https://rubytalk.org/t/minimal-ruby-distribution-with-app/20504 "2005-08-30T20:26:27Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![bww00amdahl](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@bww00amdahl](https://rubytalk.org/u/bww00amdahl)\
**Post date:** [30 August 2005 20:26 UTC](https://rubytalk.org/t/minimal-ruby-distribution-with-app/20504/1 "2005-08-30T20:26:27Z")

</div>

I'm looking for a minimal distribution of Ruby to distribute my app  
with.

Thanks

---

<div class="post-metadata">

**Author:** ![Alex\_Fenton2](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Alex\_Fenton2](https://rubytalk.org/u/Alex_Fenton2)\
**Post date:** [30 August 2005 20:41 UTC](https://rubytalk.org/t/minimal-ruby-distribution-with-app/20504/2 "2005-08-30T20:41:23Z")

</div>

not quite a separate minimal ruby source distribution, but you might find Rubyscript2exe helpful,  
depending

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

This will bundle up a (platform specific) minimum runtime binary + libraries package.  
You can unzip the contents of the minimal bundle to see what's needed, or run it in place.

alex

bww00amdahl@yahoo.com wrote:

> **···**
>
> > I'm looking for a minimal distribution of Ruby to distribute my app  
> > with.
> > 
> > Thanks

---

<div class="post-metadata">

**Author:** ![Konstantin\_Levinski](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@Konstantin\_Levinski](https://rubytalk.org/u/Konstantin_Levinski)\
**Post date:** [31 August 2005 08:16 UTC](https://rubytalk.org/t/minimal-ruby-distribution-with-app/20504/3 "2005-08-31T08:16:24Z")

</div>

for windows, [http://exerb.sourceforge.jp/index.en.html](http://exerb.sourceforge.jp/index.en.html) worked nicely  
with my ruby app/wxRuby GUI. Exerb yields a nice standalone ~1 mb .exe  
file which works.

---

<div class="post-metadata">

**Author:** ![James\_Britt4](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@James\_Britt4](https://rubytalk.org/u/James_Britt4)\
**Post date:** [30 August 2005 21:21 UTC](https://rubytalk.org/t/minimal-ruby-distribution-with-app/20504/4 "2005-08-30T21:21:28Z")

</div>

Alex Fenton wrote:

> not quite a separate minimal ruby source distribution, but you might find Rubyscript2exe helpful,  
> depending
> 
> [http://www.erikveen.dds.nl/rubyscript2exe/index.html](http://www.erikveen.dds.nl/rubyscript2exe/index.html)
> 
> This will bundle up a (platform specific) minimum runtime binary + libraries package.  
> You can unzip the contents of the minimal bundle to see what's needed, or run it in place.

Rubyscript2exe is quite nice. As an example, a bundled Nitro application is ~2,250 kb.

James

> **···**
>
> --
> 
> [http://www.ruby-doc.org](http://www.ruby-doc.org) - The Ruby Documentation Site  
> [http://www.rubyxml.com](http://www.rubyxml.com) - News, Articles, and Listings for Ruby & XML  
> [http://www.rubystuff.com](http://www.rubystuff.com) - The Ruby Store for Ruby Stuff  
> [http://www.jamesbritt.com](http://www.jamesbritt.com) - Playing with Better Toys

---

<div class="post-metadata">

**Author:** ![Vladimir\_Konrad](https://avatars.discourse-cdn.com/v4/letter/v/a88e4f/32.png) [@Vladimir\_Konrad](https://rubytalk.org/u/Vladimir_Konrad)\
**Post date:** [31 August 2005 09:21 UTC](https://rubytalk.org/t/minimal-ruby-distribution-with-app/20504/5 "2005-08-31T09:21:24Z")

</div>

Konstantin Levinski wrote:

> for windows, [http://exerb.sourceforge.jp/index.en.html](http://exerb.sourceforge.jp/index.en.html) worked nicely  
> with my ruby app/wxRuby GUI. Exerb yields a nice standalone ~1 mb .exe  
> file which works.

also, the exerb produced executable can be compressed by upx...

---

<div class="post-metadata">

**Author:** ![\_blackdog](https://avatars.discourse-cdn.com/v4/letter/_/e0b2c6/32.png) [@\_blackdog](https://rubytalk.org/u/_blackdog)\
**Post date:** [31 August 2005 14:41 UTC](https://rubytalk.org/t/minimal-ruby-distribution-with-app/20504/6 "2005-08-31T14:41:27Z")

</div>

Alex Fenton wrote:

> **···**
>
> > not quite a separate minimal ruby source distribution, but you might  
> > find Rubyscript2exe helpful,  
> > depending
> > 
> > [http://www.erikveen.dds.nl/rubyscript2exe/index.html](http://www.erikveen.dds.nl/rubyscript2exe/index.html)
> > 
> > This will bundle up a (platform specific) minimum runtime binary +  
> > libraries package.  
> > You can unzip the contents of the minimal bundle to see what's needed,  
> > or run it in place.
> > 
> > alex
> > 
> > bww00amdahl@yahoo.com wrote:  
> > \> I'm looking for a minimal distribution of Ruby to distribute my app  
> > \> with.  
> > \>  
> > \> Thanks  
> > \>

---

<div class="post-metadata">

**Author:** ![Douglas\_Livingstone](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@Douglas\_Livingstone](https://rubytalk.org/u/Douglas_Livingstone)\
**Post date:** [31 August 2005 15:05 UTC](https://rubytalk.org/t/minimal-ruby-distribution-with-app/20504/7 "2005-08-31T15:05:11Z")

</div>

Is there something similar for Mac OS X?

Douglas

> **···**
>
> On 8/30/05, Alex Fenton \<alex@deleteme.pressure.to\> wrote:
> 
> > not quite a separate minimal ruby source distribution, but you might  
> > find Rubyscript2exe helpful,  
> > depending

---

<div class="post-metadata">

**Author:** ![James\_Britt4](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@James\_Britt4](https://rubytalk.org/u/James_Britt4)\
**Post date:** [31 August 2005 15:31 UTC](https://rubytalk.org/t/minimal-ruby-distribution-with-app/20504/8 "2005-08-31T15:31:08Z")

</div>

Douglas Livingstone wrote:

> **···**
>
> > On 8/30/05, Alex Fenton \<alex@deleteme.pressure.to\> wrote:
> > 
> > > not quite a separate minimal ruby source distribution, but you might  
> > > find Rubyscript2exe helpful,  
> > > depending
> > 
> > Is there something similar for Mac OS X?
> 
> [http://www.erikveen.dds.nl/rubyscript2exe/index.html#6.1.0](http://www.erikveen.dds.nl/rubyscript2exe/index.html#6.1.0)
> 
> James
> 
> --
> 
> [http://www.ruby-doc.org](http://www.ruby-doc.org) - The Ruby Documentation Site  
> [http://www.rubyxml.com](http://www.rubyxml.com) - News, Articles, and Listings for Ruby & XML  
> [http://www.rubystuff.com](http://www.rubystuff.com) - The Ruby Store for Ruby Stuff  
> [http://www.jamesbritt.com](http://www.jamesbritt.com) - Playing with Better Toys

---

<div class="post-metadata">

**Author:** ![Nospam2](https://avatars.discourse-cdn.com/v4/letter/n/a587f6/32.png) [@Nospam2](https://rubytalk.org/u/Nospam2)\
**Post date:** [31 August 2005 20:51 UTC](https://rubytalk.org/t/minimal-ruby-distribution-with-app/20504/9 "2005-08-31T20:51:24Z")

</div>

Doesn't MacOS X have ruby already bundled in ?

> **···**
>
> Douglas Livingstone \<rampant@gmail.com\> wrote:
> 
> > \> not quite a separate minimal ruby source distribution, but you might  
> > \> find Rubyscript2exe helpful,  
> > \> depending  
> > \>
> > 
> > Is there something similar for Mac OS X?
> 
> --  
> Romuald Brunet, ICQ 33033393, [http://mog.online.fr](http://mog.online.fr)
> 
> Remplacez nospam par mon prénom pour me contacter par email

---

<div class="post-metadata">

**Author:** ![Guillaume\_Marcais1](https://avatars.discourse-cdn.com/v4/letter/g/46a35a/32.png) [@Guillaume\_Marcais1](https://rubytalk.org/u/Guillaume_Marcais1)\
**Post date:** [31 August 2005 21:12 UTC](https://rubytalk.org/t/minimal-ruby-distribution-with-app/20504/10 "2005-08-31T21:12:18Z")

</div>

Yes it does. But it is broken in Tiger and basically needs to be  
recompiled and reinstalled to be usable. It is only version 1.6 in the  
previous version of MacOS X. The library that you used may not be  
installed. Etc.

In short, you might be better off bundling everything, including ruby,  
in a click-able application for better result.

Guillaume.

> **···**
>
> On Thu, 2005-09-01 at 05:51 +0900, Romuald Brunet wrote:
> 
> > Douglas Livingstone \<rampant@gmail.com\> wrote:
> > 
> > \> \> not quite a separate minimal ruby source distribution, but you might  
> > \> \> find Rubyscript2exe helpful,  
> > \> \> depending  
> > \> \>  
> > \>  
> > \> Is there something similar for Mac OS X?
> > 
> > Doesn't MacOS X have ruby already bundled in ?

---

<div class="post-metadata">

**Author:** ![Lennon\_Day-Reynolds1](https://avatars.discourse-cdn.com/v4/letter/l/5f8ce5/32.png) [@Lennon\_Day-Reynolds1](https://rubytalk.org/u/Lennon_Day-Reynolds1)\
**Post date:** [31 August 2005 23:01 UTC](https://rubytalk.org/t/minimal-ruby-distribution-with-app/20504/11 "2005-08-31T23:01:24Z")

</div>

This isn't really true -- there are minor configuration problems with  
the Tiger build of Ruby, but the only cases they've affected me are  
when trying to build and install new extension modules. If you have  
your extensions (if any) compiled and ready to go, distributing  
Ruby-based applications isn't hard, esp. with tools like Platypus and  
Pashua to throw a GUI on top.

The biggest problem I've had with distributing Ruby apps for OS X is  
that 10.2 and 10.3 included ruby 1.6 builds, not 1.8 versions, so  
binary extensions won't be compatible. You can get away with some  
installer-trickery (basically, distributing both 1.6 and 1.8 builds,  
and swapping the right one into place at install time) but it's quite a  
pain trying to maintain (and test) backwards-compatibility for that old  
a version of Ruby.

-rcoder

---

<div class="post-metadata">

**Author:** ![Austin\_Ziegler5](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/austin_ziegler5/32/1985_2.png) [@Austin\_Ziegler5](https://rubytalk.org/u/Austin_Ziegler5)\
**Post date:** [1 September 2005 01:14 UTC](https://rubytalk.org/t/minimal-ruby-distribution-with-app/20504/12 "2005-09-01T01:14:11Z")

</div>

It will also affect you if you're using PDF::Writer because of  
endianness issues.

-austin

> **···**
>
> On 8/31/05, rcoder \<rcoder@gmail.com\> wrote:
> 
> > This isn't really true -- there are minor configuration problems with  
> > the Tiger build of Ruby, but the only cases they've affected me are  
> > when trying to build and install new extension modules. If you have  
> > your extensions (if any) compiled and ready to go, distributing  
> > Ruby-based applications isn't hard, esp. with tools like Platypus and  
> > Pashua to throw a GUI on top.
> 
> --  
> Austin Ziegler \* halostatue@gmail.com  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\* Alternate: austin@halostatue.ca
