Now you can run Ruby from a USB drive!
AllInOneRuby is a wonderful automated way to generate Ruby binaries. We just made one ourselves for those out there that don't have access to a full Ruby installation. We ran allinoneruby.rb to generate the binaries: version 1.8.6-26 for Windows and 18.104.22.168 for Linux.
To make it easier to run Ruby scripts, we included some run files. Double click them to begin running Ruby programs. Edit them to point to your scripts.
Mac users, don't feel left out! Mac OS X 10.4 and later come with Ruby built-in! So copy your Ruby scripts along with this Portable Ruby package onto a USB drive. If you designed your programs correctly, they'll now be runnable on Windows and Linux too!
Thank you Erik Veenstra for working so hard to make Ruby portable for all of us!
Running from a USB Drive
- Download Portable Ruby.
- Extract the Portable Ruby folder and copy to a USB drive.
- Double-click the run file for your operating system.
Tip: Add a pause to the end of your scripts: STDIN.gets If there is nothing keeping a script running, the launcher may quickly flash it and disappear. Exemptions include servers, GUIs, and other looping constructs that automatically keep Ruby running.
- Windows XP/Vista/7
- Mac 10.4+
- Linux with kernel 2.6.24+