Ruby Installation Instructions
Programming Language Paradigms
Team Amethyst
Tim Wentz (wentztj)
Ben Kehm (kehmbv)
Nathan Shevick (shevicna)
Installing on Windows 7
Go to Ruby
Download Page
Navigate to the Ruby on Windows section
Select the latest 1.8.7-p### Ruby Installer
Once the download has completed, run the installer
Accept the license and click Next
Make sure to select both checkboxes:
Allow ruby to add executables to path
Associate .rb and .rbw files with ruby install
Click Install
Once the install is done, click Finish
Installing on Mac OS X
Nothing to do here. It's already installed.
Installing on Ubuntu
Run in terminal:
sudo apt-get install ruby
That's it.
Hello World
Open Interactive Ruby:
On Windows: Open the `ruby 1.8.7-p###` folder from the start menu. Select Interactive Ruby
On Mac OS X and Ubuntu: Open a terminal and type irb
Type in the given code at the prompt.
Code:
puts "Hello World!"
It should print out Hello World! on the next line.
That's it! Your Ruby install works!