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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:06:46+00:00 2026-05-22T15:06:46+00:00

What are the benefits & drawbacks of installing things into the @global gemset in

  • 0

What are the benefits & drawbacks of installing things into the @global gemset in RVM?


Let’s say I want to install different versions of rails on the same server. I then want the ability to install multiple ruby apps on the same server, with the least duplication of files to save on disk space. However, I still want to avoid dependency problems, gem conflict issues and other problems.

Let’s also assume that each app has extra gems it needs that I only want in it’s local project gemset.

Would I be better off:

  1. Installing both Rails 3 and Rails 2 gems into the @global gemset
    • …And use project-local gemsets for their gems…
  2. Installing Rails 3 into a @rails3 gemset, and Rails 2 into a @rails2 set… then cloning for each project I need?
    For example:

    • rvm use ree@rails3 && rvm gemset export rails3.gems
    • rvm use ree@rails2 && rvm gemset export rails2.gems
    • rvm use --create ree@project1-on-rails3 && rvm gemset import rails3.gems
      • Install more project-local gems here…
    • rvm use --create ree@project2-on-rails2 && rvm gemset import rails2.gems
      • Install more project-local gems here…
  3. Something else entirely…
  • 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-22T15:06:46+00:00Added an answer on May 22, 2026 at 3:06 pm

    NOTE: I wrote this whole response assuming that you are using Bundler to manage your gem dependencies. I realize that some people don’t, and you didn’t mention Bundler in your question. If you aren’t using Bundler, I would point out that it probably is the best way to conserve disk space (only if you bundle install --system, though!). If you are using exported gemsets to manage dependencies, I think your scheme sounds reasonable, but I have no experience with it.


    Both Rails 3, and Rails 2 with Bundler will set their load path appropriately such that they will not load any gems (or any versions of any gems) that are not in the Gemfile.lock. There’s not really any way that I’ve experienced to have a “gem dependency problem” on the server. It is important that you run bundle install on your development machine whenever you modify the Gemfile, and that you check your Gemfile.lock into source control, as described on the Bundler homepage.

    I spent some time digging into the use-cases of gemsets back in January. The reasons I found to use separate gemsets for each project were:

    1. Your shell environment is the same as your application environment (scripts run correctly without bundle exec).
    2. You can easily browse and grep through the source code of all your dependencies, by navigating to the gemset install directory.
    3. It prevents some reported ‘heisenbugs’, according to the author of RVM. I have experienced something like this where a gem executable wasn’t available and bundle exec didn’t seem to help.

    I don’t think any of these benefits are very compelling on the server, so if you are aiming to conserve disk space, I’m not sure why you would use gemsets at all.

    Actually, the only reason I’ve used rvm at all on the server was because it was a convenient way to build ruby from source (we needed a version that wasn’t available in the native package manager).

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

Sidebar

Related Questions

Are there ever any performance (speed & memory) benefits to using a properly-implemented singleton
Lets say I have this: if(bool1 && bool2 && bool3) { ... } Now.
I come from a fairly strong OO background, the benefits of OOD & OOP
In my app, i have a URL of some webpage & i want to
What benefits are offered by HTML5 over HTML 4.01 or XHTML 1.0 Strict for
The benefits of a non-relational database (such as a key-value pair storage) are evident
What benefits does WCF bring to the table and why should I use this
Is there any performance benefits to using Command objects to validate constraints over using
Are there any benefits of using the following code? <ul role=list> <li role=listitem></li> <li
What are the benefits of http://www.example.com/app/servlet/cat1/cat2/item URL over http://www.example.com/app/servlet?catid=12345 URL Could there be any

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.