From: Jim Weirich Date: 2005-12-09T13:52:26+09:00 Subject: Re: home of the gems? railsinator wrote: > I'm trying to understand how gems are loaded. Please help. > > A little background: > > I decided to do some rails development work on a debian system. I didn't > think rails was up to date, so I tried to do a 'gem update rails'. This > failed because I did not have root access. So I installed the gems > locally. > Everthing seemed fine. > > I later deleted the local gem directory. Now: > > - "gem list" says there are no gems. > - "gemwhich rails" says "can't find rails. > - The application runs fine. > > By now it is clear to me that there are gems installed in the default > location. I would like to override this with a local install. I don't > understand how the load path is determined. > > Thanks for your help. 'gem env' will give you some information about your gem environment. You can control the details here via environment variables: GEM_HOME -- Path to gem repository where gems are installed by default. GEM_PATH -- List of paths of gem repositories to be searched. -- Jim Weirich -- Posted via http://www.ruby-forum.com/.