From: Jim Weirich Date: 2005-05-26T07:39:29+09:00 Subject: Re: Trouble doing local instal of rubygems Greg Brown said: > Have you tried following the instructions on the RubyGems web page? > > whatever directory you want to install it into needs to be in your > path, is it? > > if it is, try: > $ ruby setup.rb config --prefix=/home/mystuff > $ ruby setup.rb setup > $ ruby setup.rb install > > full documentation available at: > http://docs.rubygems.org/read/chapter/3 The main reason people want to install in a non-standard location is that they don't have write permission to the normal installation directories. If they can't install RubyGems in the normal location, then probably they can't install gems in the standard gem repository location either. This means that in addition to doing the above, they must also specify a gem repository (by setting GEM_HOME) that is in a writable location. I've updated the pages in the user's guide to reflect this. The guide now suggests the following commands: $ export GEM_HOME=/home/mygemrepository $ ruby setup.rb config --prefix=/home/mystuff $ ruby setup.rb setup $ ruby setup.rb install -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)