psumsiontech

Learning technology. Sharing the knowledge.

Installing Ruby

Windows Installation

  1. Visit http://rubyinstaller.org
  2. Click the large “Download” button
  3. When it is finished downloading, double-click the installer file
  4. Accept all the defaults
  5. Ruby should now be installed and accessible through Start > All Programs > Ruby 1.9.2-p136
  6. If you would like to be able to use multiple versions of Ruby on your machine, you can continue with the following directions
  7. Visit http://github.com/vertiginous/pik/downloads
  8. Click the latest .msi file to download it
  9. When it is finished downloading, double-click the installer file
  10. Accept all the defaults
  11. Go to Start > All Programs > Ruby 1.9.2-p136 > Start Command Prompt with Ruby
  12. Type the following in the prompt
    pik add
    pik list
    pik use 192

Mac OSX Installation

  1. Open Terminal
  2. 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
  3. Type the following
    bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
  4. Add the following to the end of your .bash_profile or .bashrc file
    source $HOME/.rvm/scripts/rvm
  5. Start a new terminal window
  6. Type the following
    rvm install 1.9.2
  7. When it is finished, type the following
    rvm use 1.9.2
  8. 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.

Leave a comment