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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:40:46+00:00 2026-05-26T00:40:46+00:00

I have two projects on my computer: – An old Rails 2.3 app that

  • 0

I have two projects on my computer:
– An old Rails 2.3 app that needs rubygems 1.6 and won’t run under rubygems 1.8;
– A newer app that needs rubygems 1.8 and won’t run under rubygems 1.6.

Each project has its own rvm gemset, but I can’t figure out how to give them different versions of rubygems itself:

  • gem update –system [version] results in gem –version giving the same answer in both;
  • rvm gemset [version] has the same result.

How can I run rubygems 1.6.2 in one project and 1.8.11 in the other?


To clarify, here’s what I want to do:

  • In directory A, have a .rvmrc with commands that select gemset A and rubygems 1.6.2
  • In directory B, have a .rvmrc with commands that select gemset B and rubygems latest
  • Have two terminal sessions open at the same time, one in directory A and the other in directory B
  • Type “gem –version” in directory A and see “1.6.2”
  • Type “gem –version” in directory B and see “1.8.11”
  • 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-26T00:40:47+00:00Added an answer on May 26, 2026 at 12:40 am

    The correct way is to created different named (-n) installs of the ruby you want installed and name them according to the rubygem version you want such as

    rvm --install use 1.9.2-nrg186 && rvm rubygems 1.8.6 && gem --list
    rvm --install use 1.9.2-nrg1810 && rvm rubygems 1.8.10 && gem --list
    

    The reason for this is that you can only have 1 version of rubygems active an any given time. This is also due to the fact that each ruby defines a dependency on a specific rubygems version that version is known or expected to work with (regardless of if it can work with another or not).

    This is the expected way to handle the multiple rubygems requirement and to eliminate potential problems. See https://gist.github.com/1273035 for specifics detailing this.

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

Sidebar

Related Questions

All, I currently have two projects that are under SourceSafe that I am unable
I have two Ruby on Rails projects on my computer. For some reason, when
I have two projects: A/B. Project A is the project that contains all of
We have two projects that are both class libraries. Project 1 is a VS
So I have two works computer, one that I use mainly for development, the
I have a couple of projects that I had started under Xcode 3.2.x some
I have a Compact Framework Project that has two Unit Test projects with it
I have two projects, a Cocoa iPhone application and a static library which it
I have two projects, the DLL project which has all my logic and data
I have two projects in the same server, their settings conflict in the session.auto_start,

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.