From: "Jörg W Mittag" Date: 2009-08-29T00:45:09+09:00 Subject: Re: RubyGems - change location from local? Adam Wilson wrote: [...] > I installed and checked using gem list, and it seems to be only showing > those gems installed since I recently upgraded RubyGems. [...] > Ideally, I would switch RubyGems to use usr/lib as most of my gems are > installed there. I could not find it in the docs, any tips much > appreciated. The environment variable GEM_HOME contains a single directory, which tells RubyGems where to install new gems and the environment variable GEM_PATH contains a list of paths where RubyGems looks for gems. So, in your case you would probably want to set GEM_HOME to /usr/lib, so that all your newly installed gems end up there, and you would set GEM_PATH to /usr/lib:/usr/local/lib (not sure about the syntax, is that colon or semicolon?) so that it finds both. Alternatively you could set GEM_HOME to /usr/local/lib, gem uninstall everything, then set to /usr/lib and reinstall. That way you get rid of the old "ghost" gems there. (Note: there are probably a million better ways to do this. I know that the RubyGems developers read all RubyGems related messages, so they'll surely correct me if I'm wrong.) jwm