Standalone application...

H

heizer1

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
 
J

John

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.
 
C

Charles Heizer

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
 
E

Erik Veenstra

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.

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

Forrest Chang

Erik Veenstra said:

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
 
D

Damphyr

Forrest said:
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.
 
E

Erik Veenstra

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...

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,968
Members
47,516
Latest member
ChrisHibbs

Latest Threads

Top