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 6849357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:58:52+00:00 2026-05-27T00:58:52+00:00

I know how to use RVM, but now I have a weird problem, which

  • 0

I know how to use RVM, but now I have a weird problem, which I do not understand why.

Here is the simple story (I am using Ubuntu):

I have created a Rails project, the direcotry of this project is “bookstore/”.

I go to project directory by cd bookstore , and type command rvm list like following:

bookstore/$ rvm list

rvm rubies

   ruby-1.9.2-p136 [ i386 ]
   ruby-1.8.7-p352 [ i386 ]
   ruby-1.8.7-p330 [ i386 ]
   ruby-1.8.6-p420 [ i386 ]
   ruby-1.9.2-p290 [ i386 ]

Since I did not see the => arrow sign which is supposed to indicate the current ruby version in use, so I specify the ruby version with the following RVM command:

bookstore/$ rvm use ruby-1.9.2-p290
Using /home/usr/.rvm/gems/ruby-1.9.2-p290

Now, if I rvm list I see my project is using ruby v1.9.2 :

bookstore/$ rvm list
rvm rubies

   ruby-1.9.2-p136 [ i386 ]
   ruby-1.8.7-p352 [ i386 ]
   ruby-1.8.7-p330 [ i386 ]
   ruby-1.8.6-p420 [ i386 ]
=> ruby-1.9.2-p290 [ i386 ]

Every thing works fine at this point!

But, if now I open a new terminal window on Ubuntu, and cd to the project directory, and run the command rvm list again, I got:

bookstore/$ rvm list

rvm rubies

    ruby-1.9.2-p136 [ i386 ]
    ruby-1.8.7-p352 [ i386 ]
    ruby-1.8.7-p330 [ i386 ]
    ruby-1.8.6-p420 [ i386 ]
    ruby-1.9.2-p290 [ i386 ]

Where is the => to indicate the ruby version I specified previously? Why it again needs me to specify the ruby version?

It happens always when I open a new terminal window. How to have my project “remember” the ruby version I have specified?

  • 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-27T00:58:53+00:00Added an answer on May 27, 2026 at 12:58 am

    Dave is right, you should set a default. But also, look into defining an .rvmrc file on a per-project or per-machine basis. I use project-specific rvmrc files, so I can use different rubies and gemsets for each project, and changing into the directory automatically switches to that project’s ruby/gemset.

    For example, my rvmrc for company site project:

    brett@bender:~/Sites/bearded/bearded(master)$ cat .rvmrc 
    rvm 1.9.3@bearded
    

    Edit: For explicitness’ sake, to solve your problem using an rvmrc file, do the following (assuming you already installed the ruby version you want and created a gemset for this project’s gems):

    1. Create a file in bookstore/ directory named .rvmrc (in your favorite editor)
    2. Add rvm ruby-1.9.2-p290 to the file and save it (you can use rvm ruby-1.9.2-p290@gemset_name if you have a gemset you want to default to)
    3. Change directory out of your bookstore directory, then change back into it.
    4. RVM should ask you if you want to trust this .rvmrc file (yes)
    5. RVM should have automatically switched your active ruby and gemset to the ones specified in your rvmrc file for that project.

    Also note that if your RVM is older than version 1.8.0 you will need to turn on rvmrc file support (versions 1.8.0+ have it turned on by default). The link at the top of my question contains instructions if you’re so inclined.

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

Sidebar

Related Questions

I have installed rvm after installing Mac OS Lion. The problem which I am
I'm not entierly sure how rngs currently work, but I know they use time
I know I use the asp FileUpload control for uploading a file but I
I know you use the C based networking API to do FTP communication but
I know and use eric meyer CSS reset, but is there any more things
I know how to use JSON to create objects, but there doesn't seem to
I'm just learning to use RVM, and would like to know how I can
I am new to jQuery . I know the use of jQuery but I
How to get events from dll? Yeah, but I don't know how use addhandler
first of all, I'm using RVM... and I don't know much about managing gem

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.