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

  • Home
  • SEARCH
  • 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 7018113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:00:06+00:00 2026-05-27T23:00:06+00:00

I want to install a gem via gem install , but I need it

  • 0

I want to install a gem via gem install, but I need it to resolve with dependencies of the current project.

Basically I want the functionality that bundler gives me when I specify gem 'xyz' in a Gemfile, but I don’t want to add that specific gem into the Gemfile.

I tried doing bundle exec gem install ... but it doesn’t seem to work.

edit: The reason why I don’t want to add it to the Gemfile is that it might be something like metric_fu, metrical, saikuro, rails_best_practices, etc. Simply gems that are kind of utility use and might only cluttler the project.

I might only want to use them temporarily, or install them, try out, if it doesn’t work out the way I want do rvm gemset empty and bundle install again to clean up.

  • 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-27T23:00:07+00:00Added an answer on May 27, 2026 at 11:00 pm

    The point of Bundler is, in part, to prevent you from doing things like that (to prevent you from injecting gems from outside when your project doesn’t declare them).

    Looking for a way of doing that is looking for a bug in Bundler. If you did manage to find some way of skirting Bundler’s enforcement mechanisms, you should probably not use it; instead, you may consider filing it as a bug with Bundler’s issue tracker.

    Now we come to the real questions: what can you do? and what should you do?

    • You should use either RVM gemsets or Bundler to isolate your application and its gem dependencies. You don’t need both. I would recommend Bundler for this purpose over RVM gemsets.

    • You should add to your Gemfile any gems that you want to use and that integrate with your application (i.e., that either load your application or that are loaded as part of your application). This is not a requirement for any gems that refrain from integrating with your application.

    • You should refrain from committing a changed Gemfile or Gemfile.lock to version control until you are satisfied that your application continues to operate acceptably (tests pass, new gem does something useful, etc.).

    Or you should stop using Bundler, because you want to do things it is explicitly designed to prevent you from doing (not recommended).

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

Sidebar

Related Questions

I want to install a gem on all my application servers, but gem install
I want to use the LinkedIn gem But not the one that I get
I want to install ruby. My OS is centos5.5. When I gem install bundle
I want install android on my computer but using the sdk it fails to
I want to install outlook add-ins (Which is developed by Visual studio 2008) but
I want to install Rad Studio 2010 on a machine that already has installed
I want to install satchmo in my virtual hosting, but they dont provide ssh
I like that Rails 3 is so easy to install: gem install rails --pre
I want to use cloudmade gem but it is not stored in rubyforge so
Normally I use: gem install rails I can install Rails on Windows, but by

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.