How-to Quick Getting-Started with RVM to Install/Manage Multiples Rubies on Linux

July 19th, 2012 by Regaz



The Guide Shows You Step-by-Step How-to Getting-Started with RVM to Installing/Managing Multiples Rubies on Linux.

The Content give Focus Only to the Essentials Instructions and Commands to make it Easier to Understand;)

If RVM is Not Already Installed you Find Link to the Article Bottom for Installing RVM Ruby Version Manager on Linux.

Ruby
  1. How-to Install RVM on Linux

    How-to Install Ruby Version Manager
  2. Open a Terminal Window
    (Press “Enter” to Execute Commands)

  3. Check/Install Git

    which git

    Eventually to Install Git:

    • On Ubuntu-like
      sudo apt-get install git
    • On RedHat-like
      sudo yum install git
    • On Mandrake-like
      su 

      If Got “User is Not in Sudoers file” then Look: Solution

      urpmi install git
    • On OpenSuse
      sudo zypper install git
  4. Load Bash Shell

    bash -l
  5. Install Rubies

    Best to Get Installed 1.8.7 First.

    rvm install 1.8.7

    Other Examples:

    rvm install 1.8.6
    rvm install 1.9.2-head

    You will need to Wait Until Achievement of Downloading, Compiling & Installing…

  6. Select/Use a Ruby Version

    rvm select 1.9.2

    After you Can Check that Ruby is Working with:

    which ruby
    ruby -v

Tags: , , , , , ,