tags:

views:

1101

answers:

4

I'd like to be able to send a Ruby app to some colleagues without requiring them to install a Ruby interpreter. A single exe would be preferable.

I googled and found "RubyScript2Exe".

What are your experiences with that? Are there other such tools or are there better approaches altogether than building an exe?

+5  A: 

I've used it about 3 times and I haven't had any problems with it and I ran one of the apps on 10 servers and never had any issues. So, I think RubyScript2Exe is about as good as it gets for ruby.

BobbyShaftoe
RubyScript2Exe is very easy to use. But it's good to mention that the executables are very slow to start up.
Eric W.
+3  A: 

There is another one called Crate. You can find some information about it here. However I haven't tested it on Windows.

georg
+4  A: 

_why's Shoes framework lets you package the program as an executable for Mac or Windows that installs Shoes (contains a Ruby interpreter). Information about using the packager is here. _why also gives hints about how he makes the Windows executable here.

method
So far I have been really pleased working with Shoes, i would recommend giving this a try.
danmayer
After _why's disappearance, the links mentioned above are all offline. The new home of Shoes is at http://shoes.heroku.com/ and the source code is at http://github.com/shoes/shoes
Arto Bendiken
A: 

Sorry to be late to the party, but I found this question in my search for trying to do this myself (starting to use SO more and more as a primary resource).

Anyway, I have just had success with exerb, although I'd add a couple of notes:

  • The web page says exerb runs on any platform. That is true; however if you "compile" a program calls out to native code, then exerb will embed your system's native code (e.g. Linux .so files) into the .exe. In practice, that means you have to build any significant app on Windows.
  • The web page also says ruby -r exerb/mkrbc but the actual command is ruby -r exerb/mkexy.
jhs