views:

181

answers:

2

Hi there,

how can I delete the second path (/home/tom/.gem/ruby/1.8) of "GEM PATHS:" ?

Here's the output of "$ gem env":

RubyGems Environment:

  • RUBYGEMS VERSION: 1.3.5
  • RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
  • INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
  • RUBY EXECUTABLE: /usr/bin/ruby1.8
  • EXECUTABLE DIRECTORY: /usr/bin
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86-linux
  • GEM PATHS:
    • /usr/lib/ruby/gems/1.8
    • /home/tom/.gem/ruby/1.8
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :benchmark => false
    • :backtrace => false
    • :bulk_threshold => 1000
  • REMOTE SOURCES:

Thanks a lot! Tom

A: 

Override in your ~/.bashrc file?

#in ~/.bashrc
export GEM_PATH=/usr/lib/ruby/gems/1.8

Feels kind of hacky though.

Max Williams
Thanks for your help!
TomDogg
A: 

I would love to know where RubyGems sticks the gem paths. I have scoured my system looking for /etc/gemrc, ~/.gemrc, etc and I cannot find ANYTHING that suggest where these paths are hard coded.

I'm on a mac and having some serious issues trying to upgrade Ruby from 1.8.6. I've tried the RVM (Ruby Version Management) and MacPorts - and I think I'm getting overlap for my gem paths.

Frankly, I don't think the ~/.gemrc or /etc/gemrc is an elegant solution. Surely there must be a file SOMEWHERE that contains this information? Cryptic. Ruby. Bullshit.

Evan Reeves