Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Standalone application...

4 views
Skip to first unread message

hei...@llnl.gov

unread,
Aug 23, 2005, 1:07:21 PM8/23/05
to
Hello,
I'm new to ruby and I wanted to know if there is a way to make a
standalone ruby binary, I'm running Mac OS X and Linux?

Thanks,
- Charles

John

unread,
Aug 23, 2005, 3:17:37 PM8/23/05
to
If you're talking about a command-line utility, not a GUI app, you can
just add "#!/bin/ruby" (or whatever the path to your Ruby executable
is) as the first line of your script. This way, you can just execute
the script by name, without the "ruby" command.

Erik Veenstra

unread,
Aug 23, 2005, 3:47:43 PM8/23/05
to
> I'm new to ruby and I wanted to know if there is a way to
> make a standalone ruby binary, I'm running Mac OS X and
> Linux?

http://www.erikveen.dds.nl/distributingrubyapplications/index.html
http://www.erikveen.dds.nl/rubyscript2exe/index.html
http://www.erikveen.dds.nl/tar2rubyscript/index.html

Just advertising my own projects and writings...

gegroet,
Erik V. - http://www.erikveen.dds.nl/

Charles Heizer

unread,
Aug 23, 2005, 4:23:05 PM8/23/05
to
Thanks for the reply, I really do not want to add the "#!/bin/ruby" and
just serve up the script, I really want to make it a standalone
application, similar to what a starpack/starkit is in TCL or py2app in
python.

Thanks,
- Charles

nobody

unread,
Aug 27, 2005, 4:23:04 AM8/27/05
to
+ exerb (windows only?), just to add an option:

http://exerb.sourceforge.jp/index.en.html

vlad:

ps: why exerb packed binary can be packed by UPX but rubyscript2exe
packed one cannot?

Erik Veenstra

unread,
Aug 29, 2005, 4:47:06 AM8/29/05
to
> why exerb packed binary can be packed by UPX but
> rubyscript2exe packed one cannot?

True. An executable generated by RubyScript2Exe can't be
compressed by UPX. I don't know why. But since RubyScript2Exe
(more precisely: EEE) compresses internally, you don't need to
compress it once again.

Forrest Chang

unread,
Sep 6, 2005, 4:37:21 PM9/6/05
to
Erik Veenstra <p...@erikveen.dds.nl> writes:

>> I'm new to ruby and I wanted to know if there is a way to
>> make a standalone ruby binary, I'm running Mac OS X and
>> Linux?
>
> http://www.erikveen.dds.nl/distributingrubyapplications/index.html
> http://www.erikveen.dds.nl/rubyscript2exe/index.html
> http://www.erikveen.dds.nl/tar2rubyscript/index.html
>
> Just advertising my own projects and writings...

I wanna give Erik a plug. I've been succesfully using the bottom 2
apps to make standalone ruby apps for one of my projects. Very handy.
Erik is also very responsive, I found a bug in tar2rubyscript and he
fixed it immediately.

Sometime in the near future, I'll probably try to port rubyscript2exe to solaris.

Forrest

Damphyr

unread,
Sep 7, 2005, 12:45:45 PM9/7/05
to
Forrest Chang wrote:
> Erik Veenstra <p...@erikveen.dds.nl> writes:
>
>
>>>I'm new to ruby and I wanted to know if there is a way to
>>>make a standalone ruby binary, I'm running Mac OS X and
>>>Linux?
>>
>> http://www.erikveen.dds.nl/distributingrubyapplications/index.html
>> http://www.erikveen.dds.nl/rubyscript2exe/index.html
>> http://www.erikveen.dds.nl/tar2rubyscript/index.html
>>
>>Just advertising my own projects and writings...
>
>
> I wanna give Erik a plug. I've been succesfully using the bottom 2
> apps to make standalone ruby apps for one of my projects. Very handy.
> Erik is also very responsive, I found a bug in tar2rubyscript and he
> fixed it immediately.
>
OK, since Erik is also listening, and I want to know:
What's the comparison between exrb and rubyscript2exe (on Windows, don't
go mentioning that exrb only runs on windows).
I was having problems making EXEs that used REXML with exrb (that was
some months ago) and I'm pretty interested in having EXEs with FOX and
REXML code.
By the way the documentation on rubyscript2exe is breathtaking. WOW!
V.-

____________________________________________________________________
http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου.
http://www.freemail.gr - free email service for the Greek-speaking.


Erik Veenstra

unread,
Sep 19, 2005, 10:11:20 AM9/19/05
to
> OK, since Erik is also listening, and I want to know: What's
> the comparison between exrb and rubyscript2exe (on Windows,
> don't go mentioning that exrb only runs on windows).

Late response, have been on holiday...

Since I don't know anything about the internals of Exerb and
the site doesn't reveal the internals, I can't tell the
difference between Exerb and RubyScript2Exe. A couple of thinks
I know (or expect):

* Exerb uses a "patched" ruby interpreter in the generated
executable. This interpreter comes with Exerb. RubyScript2Exe
uses the Ruby interpreter which is used to run RubyScript2Exe
itself, the one already installed on the system.

* Exerb uses a recipe file. I don't know what information this
file contains, but you have to generate one before you can
"compile" your application. RubyScript2Exe only uses the
application itself.

* Exerb doesn't compress the result. (But the result could be
compressed by UPX, if you want to.) RubyScript2Exe does
compress the generated executable.

* Number of supported platforms and portability. (Sorry...)

* RubyScript2Exe is written in pure Ruby.

If you're able to read Japanese, you could read the
doc/inside.jp.rd file which comes with Exerb, read the
RubyScript2Exe site (which is in English) and tell me the
differences...

> I was having problems making EXEs that used REXML with exrb
> (that was some months ago) and I'm pretty interested in
> having EXEs with FOX and REXML code.

Both Fox and ReXML are reported to work with RubyScript2Exe.
I've no experience myself with either of them.

> By the way the documentation on rubyscript2exe is
> breathtaking. WOW!

Thanks...

0 new messages