Ruby Executable Issues

hi all,

i’m creating a program and i’d like it to run as a standalone
executable on any of the various platforms.

i dev in linux, but my first program is for a windows friend - yeah, i
have some. :wink:

i’d like to create an executable for windows - and i understand
rubyscript2exe can do exactly that. however, i also understand that
the program user would still have to have ruby installed on their
computer, in addition to the the executable i would create.

i’ve been reading up on allinoneruby, and it appears to be just ruby,
with no application.

can i somehow combine these two to get a truly standalone application?

is there a better way to achieve standalone executable status (windows
first, but i’m still interested in how to do so on linux and mac).

tia…

N

On 7/30/06, Skeets [email protected] wrote:

rubyscript2exe can do exactly that. however, i also understand that
the program user would still have to have ruby installed on their
computer, in addition to the the executable i would create.

Not that I have experienced. I’ve sent exe’s compilied with
rubyscript2exe
to other people on using Windows that did not have Ruby installed, and
they
never noticed a problem. I’ve only compiled on Windows for Windows
though,
and it is looking like from the website that you can’t compile a .exe
for
Windows when under Linux (this seems to be confirmed by a program I just
compiled under Ubuntu with rubyscript2exe. It gave me a script, not a
.exe).

Hope that helps,
Ethan P.

i’d like to create an executable for windows - and i
understand rubyscript2exe can do exactly that. however, i
also understand that the program user would still have to
have ruby installed on their computer, in addition to the the
executable i would create.

If the author of RubyScript2Exe says that it can be used to
create standalone applications ("…for it collects all
necessary files to run your script on an other machine: the
Ruby script, the Ruby interpreter and the Ruby runtime
library…"), how can you understand the opposite? He’s even
made a nice diagram [1]!

Maybe the author wasn’t explicit enough. If he wasn’t, just let
him know. He is used to receive mails from people asking things
which he already explained on his site. He probably doesn’t
explain things very well… ;]

can i somehow combine these two to get a truly standalone
application?

Yes, you can:

c:> ruby allinoneruby.rb
c:> allinoneruby rubyscript2exe.rb test.rb

(Just to be clear: this is just a joke… Just to be clear: the
second part is a joke, the first one was dead serious…)

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

[1]
http://www.erikveen.dds.nl/distributingrubyapplications/index.html#1.0.0

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs