Gems not found by 'gem list' when using 'bundle install' for git gems with RVM

I’m currently trying to run ‘bundle install’ to install a git based gem using a Gemfile and consequently use ruby/ other ruby commands without bundler with the latest version of RVM (1.14.3).

I believe the cause of the issue is that bundler is installing the git gem into .rvm/gems/ruby-1.9.3-p194@something/bundler/gems while all other gems are installed into .rvm/gems/ruby-1.9.3-p194@something/gems. As a result, ‘bundle list’ shows the gem but ‘gem list’ does not.

  • how to automatically run bundle install if the gemfile is updated after a git pull/merge?
  • Using Bundler with Git, is https:// or git:// better?
  • How to create interdependent gems with bundler, and use repositories as the source?
  • Bundler: always use latest revision of git branch in Gemfile
  • Gemfile.lock not checked in - Heroku
  • `bundle install` fails (because of git protocol)
  • Any thoughts here? I’d really prefer not to use bundle to execute everything.

  • What makes merging in DVCS easy?
  • Merge git repo into branch of another repo
  • Move pointer to last existing commit of master
  • How to checkout only one file from git repository ('sparse checkout')?
  • Git Automatically push to Dev and Production from Central Repository depending on branch pushed
  • How to mock a post commit hook in github, for a repo that is not owned
  • One Solution collect form web for “Gems not found by 'gem list' when using 'bundle install' for git gems with RVM”

    Bundler is for bundling gems with applications. It doesn’t make sense to use it for system gems. Unfortunately, the non-bundler gem system offers no direct way to install git-based gems (I actually asked a question about this previously, see Is it possible to directly install a gem from a git repository?). Instead, you have to do it manually in three steps:

    1. Clone the gem repo (this is assuming a github repository, but it will work for a repository hosted anywhere, just substitute the right git repo location).

      git clone git://
    2. Go to the cloned gem repo directory and build the gem (this will also check for dependencies and warn you if the install failed because of a missing dependency — in that case just install the dependencies and try again).

      rake gem

      Or if that doesn’t work:

      gem build gem.gemspec
    3. This should have created a file with a name like pkg/gem-1.2.3.gem (sometimes it will build in the pkg directory like this, sometimes it will build in the gem repo root directory). You can now install it.

      gem install pkg/gem-1.2.3.gem
    Git Baby is a git and github fan, let's start git clone.