Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5946897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:53:16+00:00 2026-05-22T16:53:16+00:00

I have following ruby versions (I’m on linux (Ubuntu)) rvm list ruby-1.8.7-p302 [ i386

  • 0

I have following ruby versions (I’m on linux (Ubuntu))

rvm list

   ruby-1.8.7-p302 [ i386 ]
   ruby-1.9.1-p378 [ i386 ]
=> ruby-1.9.2-p0 [ i386 ]

When I do:

sudo rvm --default use 1.8.7

My RVM Ruby version changed to:

=> ruby-1.8.7-p302 [ i386 ]
   ruby-1.9.1-p378 [ i386 ]
   ruby-1.9.2-p0 [ i386 ]

But it doesnt change my system gem version:

ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]

How to change my system ruby version to 1.8.7?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:53:17+00:00Added an answer on May 22, 2026 at 4:53 pm

    Using:

    sudo rvm --default use 1.8.7
    

    changes it for root, not for you. Remember, RVM is primarily for creating a sandbox for you as a user, not for the system or another user. Since you’ve been using sudo, which is a bad thing, you probably have things that are now owned by root, not you, which will cause your Ruby system to behave like it’s psycho. Use chown to switch the ownership of all files in ~/.rvm back to you.

    Use:

    rvm system
    

    to switch back to the default Ruby in /usr, /usr/local or /opt. Which one is called at that point will be determined by your PATH settings.

    To switch between versions in your account that display when you do rvm list, use:

    rvm use 1.8.7
    

    or simply

    rvm 1.8.7
    

    If you want to make that the default version that is sticky, add on --default to the end of the command.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have upgraded ruby using the following commands with rvm: rvm get head rvm
I have tried to install each of the following three versions of Ruby via
Let's say I have the following ruby code : def use_object(object) puts object.some_method end
I have the following code in Ruby. I want to convert this code into
If I have the following piece of Ruby code: class Blah def self.bleh @blih
I have the following code: #!/usr/bin/ruby class Person def self.speak p = self.new puts
I have the following XML document: <projects> <project> <name>Shockwave</name> <language>Ruby</language> <owner>Brian May</owner> <state>New</state> <startDate>31/10/2008
I am trying to install ruby-mp3info. I have the following URL from which I
This is not a ruby/rails project deploy. I have the following situation and I
I have just set up ruby in Aptana studio and am getting the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.