etayluz
etayluz

Reputation: 16416

Bundle update installs gems into ~/.rvm/gems/ruby-2.0.0-p247@railstutorial_rails_4_0

I have a rails project located at ~/RailsApp

From there I run: bundle update

The ensuing gems are then installed into this directory:

~/.rvm/gems/ruby-2.0.0-p247@railstutorial_rails_4_0

What is railstutorial_rails_4_0 and where is it coming from? Is this directory configured somewhere?

It's an issue because when I try to debug in RubyMine I receive this message: Could not find nokogiri-1.6.6.2 in any of the sources (Bundler::GemNotFound) However, when I run "gems list" I see that the gem is installed - but it's in that strange directory of ruby-2.0.0-p247@railstutorial_rails_4_0.

Also, what is the difference between ~/.rvm/gems/ruby-2.0.0-p247 and ~/.rvm/gems/ruby-2.0.0-p247@global? There is also a directory called ~/.rvm/gems/[email protected]

Why are there so many directories in the gems folder and not just one to contain all the gems?

Upvotes: 0

Views: 239

Answers (1)

Simone Carletti
Simone Carletti

Reputation: 176352

The path ~/.rvm/gems/ indicates that you are using RVM. The name railstutorial_rails_4_0 after the @ is an RVM gemset.

You likely have a .ruby-gemset file inside your project, containing the name of the gemset. RVM automatically switches to it when found.

Upvotes: 1

Related Questions