Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My current gem env returns:

RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.6
  - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
  - INSTALLATION DIRECTORY: /home/USERNAME/.gems
  - RUBYGEMS PREFIX: /home/narkoz
  - RUBY EXECUTABLE: /usr/bin/ruby1.8
  - EXECUTABLE DIRECTORY: /home/USERNAME/.gems/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /home/USERNAME/.gems
     - /usr/lib/ruby/gems/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gempath" => ["/home/USERNAME/.gems", "/usr/lib/ruby/gems/1.8"]
     - "gemhome" => "/home/USERNAME/.gems"
  - REMOTE SOURCES:
     - http://rubygems.org/

How can I change path /home/USERNAME/ to my own without uninstalling? OS: Debian Linux

share|improve this question
1  
Good question +1. I mean, basically anything about ruby gems is a good question, I think :) –  Yar May 3 '10 at 13:57

2 Answers 2

I'm sorry if I've misunderstood the question but can you not just do:

export GEM_PATH=/home/myown

Maybe put it in your .bashrc.

share|improve this answer
up vote 1 down vote accepted

Create .gemrc file in your home path. Put these lines:

gemhome: /home/CHANGE_IT_TO_USERNAME/.gems
gempath:
  - /home/CHANGE_IT_TO_USERNAME/.gems

Documentation about gem configuration file

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.