psumsiontech
Learning technology. Sharing the knowledge.
Installing Ruby
January 22, 2011
Posted by on Windows Installation
- Visit http://rubyinstaller.org
- Click the large “Download” button
- When it is finished downloading, double-click the installer file
- Accept all the defaults
- Ruby should now be installed and accessible through Start > All Programs > Ruby 1.9.2-p136
- If you would like to be able to use multiple versions of Ruby on your machine, you can continue with the following directions
- Visit http://github.com/vertiginous/pik/downloads
- Click the latest .msi file to download it
- When it is finished downloading, double-click the installer file
- Accept all the defaults
- Go to Start > All Programs > Ruby 1.9.2-p136 > Start Command Prompt with Ruby
- Type the following in the prompt
pik add
pik list
pik use 192
Mac OSX Installation
- Open Terminal
- Type the following
ruby -v
If the output of that command is “ruby 1.9.2p136”, you can stop there. If not, continue with the following steps - Type the following
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
- Add the following to the end of your .bash_profile or .bashrc file
source $HOME/.rvm/scripts/rvm
- Start a new terminal window
- Type the following
rvm install 1.9.2
- When it is finished, type the following
rvm use 1.9.2
- Optionally, if you always want to use Ruby 1.9.2, you can add the preceding line to your .bash_profile or .bashrc file
*** The information here comes from the book “Programming Ruby 1.9” by Dave Thomas. It is posted here as support material for my CIT 336 class presentation on the Ruby programming language.