RubyGems Environment (Snow Leopard)

gemrubyruby-on-railsrubygems

Greetings,

My question is why do I have 3 separate gem paths. My 'gem environment' command displays the following:

GEM PATHS
– /Library/Ruby/Gems/1.8
– /Users/adam/.gem/ruby1.8 –This one makes sense to me
– /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8

Why the two separate "system" paths?

Thanks.

Best Solution

If you're using the stock Ruby that comes with OS X 10.6, it includes several different library bundles:

# /Library/Ruby/Gems/1.8
# => Standard Gems, default install location
# ~/.gem/ruby1.8
# => User-specific gems
# /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
# => 10.6 distribution bundled gems: Rails, Ferret, Capistrano, etc. 

The port installed gem environment is different:

# /opt/local/lib/ruby/gems/1.8
# => Standard gems, default install location
# ~/.gem/ruby/1.8
# => User-specific gems