6

Why are there two rake gemspecs in an rvm installation?

~ - 10:59>find ~/.rvm/ -name 'rake-0.8.7.gemspec'
~/.rvm/gems/ruby-1.9.2-p136/specifications/rake-0.8.7.gemspec
~/.rvm/gems/ruby-1.9.2-p136@global/specifications/rake-0.8.7.gemspec  # alias
~/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/gems/1.9.1/specifications/rake-0.8.7.gemspec

Why are they different? (The non-gem version only contains the name and version).

Why doesn't the gem command always use the spec in the .rvm/gems dir, and how do I convince it to do so?

(This is a piece of the puzzle in order to solve this problem with installing ffi.

Community
  • 1
  • 1
Michiel de Mare
  • 41,982
  • 29
  • 103
  • 134

1 Answers1

1

This has to do with the RVM concept of gemsets. It allows you have different groups of gem installs that you can make active.

Read more about gemsets here:

mpapis
  • 52,729
  • 14
  • 121
  • 158
Chris Cherry
  • 28,118
  • 6
  • 68
  • 71