spot_imgspot_img

Ruby Version Manager

In this post we learn to manage Ruby versions with the Ruby Version Manager or RVM.

Ruby is a useful language and we use it extensively. As developers we need the ability to quickly move between installed versions of Ruby as necessary to work against. This need was recently highlighted by the release of OSX Mavericks which implemented core changes that could affect development environments adversely.

We manage different versions of ruby with the Ruby Version Manager. We will explore how to:

  • Install RVM.
  • Find available versions of Ruby.
  • Use RVM to install Ruby.
  • Completely remove the installed RVM and Ruby.

This demonstration is performed on OSX Mavericks, but the concepts will easily translate to a Linux user.

Install RVM

  1. Install RVM.$ curl -sSL https://get.rvm.io | bash -s -- --auto-dotfiles
  2. Exit Your Terminal and restart it!!!
  3. Verify the installation.$ rvm -v
  4. Find available versions of Ruby.$ rvm list known
  5. Use RVM to install Ruby version 2.1. Use the –force flag to require recompilation of the gems.$ rvm install 2.1 --force
  6. Tell the system to use the installed Ruby as the default.$ rvm use 2.1 --default

Purge RVM

  1. Completely remove the installed RVM and Ruby.$ rvm implode
  2. Manually remove RVM references from the respective personalization files:$ ~/.profile, $ ~/.bashrc $ ~/.zshrc $ ~/.bash_profile $ ~/.zlogin

Get in Touch

spot_imgspot_img
spot_img

Get in Touch

[td_block_social_counter facebook="tagdiv" style="style6 td-social-boxed" open_in_new_window="y" f_counters_font_family="394" f_network_font_family="891" f_counters_font_size="eyJhbGwiOiIxNCIsImxhbmRzY2FwZSI6IjEzIiwicG9ydHJhaXQiOiIxMiJ9" f_network_font_size="eyJhbGwiOiIxMyIsImxhbmRzY2FwZSI6IjExIiwicG9ydHJhaXQiOiI5In0=" counter_color="#ffffff" counter_color_h="#ffffff" network_color="#ffffff" network_color_h="#ffffff" tdc_css="eyJsYW5kc2NhcGUiOnsibWFyZ2luLWJvdHRvbSI6IjMwIiwiZGlzcGxheSI6IiJ9LCJsYW5kc2NhcGVfbWF4X3dpZHRoIjoxMTQwLCJsYW5kc2NhcGVfbWluX3dpZHRoIjoxMDE5LCJwb3J0cmFpdCI6eyJtYXJnaW4tYm90dG9tIjoiMjAiLCJkaXNwbGF5IjoiIn0sInBvcnRyYWl0X21heF93aWR0aCI6MTAxOCwicG9ydHJhaXRfbWluX3dpZHRoIjo3NjgsInBob25lIjp7Im1hcmdpbi1ib3R0b20iOiI0MCIsImRpc3BsYXkiOiIifSwicGhvbmVfbWF4X3dpZHRoIjo3NjcsImFsbCI6eyJtYXJnaW4tYm90dG9tIjoiNDAiLCJkaXNwbGF5IjoiIn19" twitter="tagdivofficial" youtube="tagdiv"]

Latest Posts