From: Adam Wilson Date: 2009-08-29T01:23:43+09:00 Subject: Re: RubyGems - change location from local? J旦rg W Mittag wrote: > 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 Many thanks for the info, I will look into it... I will wait till tomorrow se if any of the RubyGems experts have anything to say, but that info seems enough at least to help me move forward. Best, Adam -- Posted via http://www.ruby-forum.com/.