Ruby Executable Issues

S

Skeets

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

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

Erik Veenstra

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
 

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
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top