How to use Ruby portable?

B

balzer

I downloaded Ruby binaries, ruby-1.8.7-p72-i386-mswin32.zip I' wondering
if it's possible configure all package of Ruby environment as a "Portable
App" , the
idea is to have a fully-functional Ruby environment that executes entirely
from hard drive (or USB stick) eaving no footprint whatsoever on the
machine it's run on -- no registry entries, no configuration files, etc. If
I just unzip all Ruby package into 2nd hard drive, how to run Ruby files?
Should I put programs inside some of Ruby directory?

Will Ruby write to registry on interact with Windows programs?
 
M

Marvin Gülker

balzer said:
I downloaded Ruby binaries, ruby-1.8.7-p72-i386-mswin32.zip I'
wondering
if it's possible configure all package of Ruby environment as a
"Portable
App" , the
idea is to have a fully-functional Ruby environment that executes
entirely
from hard drive (or USB stick) eaving no footprint whatsoever on the
machine it's run on -- no registry entries, no configuration files, etc.
If
I just unzip all Ruby package into 2nd hard drive, how to run Ruby
files?
Should I put programs inside some of Ruby directory?

Will Ruby write to registry on interact with Windows programs?

No, Ruby doesn't write any registry entries. That's beacuse Ruby IS
already quite portable - it runs on nearly every OS and a Registry is
quite Windows-specific.

So, just unzip your Ruby wherever you want it. In order to start ruby,
just do:
 
B

balzer

Marvin Gülker said:
No, Ruby doesn't write any registry entries. That's beacuse Ruby IS
already quite portable - it runs on nearly every OS and a Registry is
quite Windows-specific.

So, just unzip your Ruby wherever you want it. In order to start ruby,
just do:
----------
C:\> I:
I:\> ruby\bin\ruby -v
----------
or whatever drive letter your USB device gets and however the ruby
directory is named.

Marvin
--
 
D

Damjan Rems

balzer said:
--------------------

And where should be placed programs: inside Ruby directory?

thank you.

It doesn't matter at all.

Go to whatever directory and type: i:\ruby\bin\ruby myrubyprog.rb

by
TheR
 
B

balzer

-----------
how to use it? for example Ruby in on F:

F:\Ruby

program is in
F:\Ruby\origami-1.0.0b
scripts are in
F:\Ruby\origami-1.0.0b\sources\scripts\parse which have 'parse.rb' script i
want run
 

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

Forum statistics

Threads
473,999
Messages
2,570,246
Members
46,839
Latest member
MartinaBur

Latest Threads

Top