# Gem server - cannot redirect to gem repository

**URL:** <https://www.ruby-forum.com/t/gem-server-cannot-redirect-to-gem-repository/174846>\
**Category:** Ruby\
**Created:** [September 3, 2009, 1:44am UTC](https://www.ruby-forum.com/t/gem-server-cannot-redirect-to-gem-repository/174846 "2009-09-03T01:44:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbcox23](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b9bd4f/32.png) [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Post date:** [September 3, 2009, 1:44am UTC](https://www.ruby-forum.com/t/gem-server-cannot-redirect-to-gem-repository/174846/1 "2009-09-03T01:44:54Z")

</div>

Due to some quirk of my install-from-source (done earlier today), my  
gems are in /home/tomc/.gem/ruby/1.8/doc, on my Kubuntu Linix OS.

I need to redirect the gem server to this location, but nothing I’ve  
tried has worked, and I’m out of ideas.

Here’s what I think SHOULD work, with the result:

gem server -d=/home/tomc/.gem/ruby/1.8/doc  
ERROR: While executing gem … (ArgumentError)  
/home/tomc/=/home/tomc/.gem does not appear to be a gem repository

These also do not work:  
/home/tomc/.gem  
/home/tomc/.gem/ruby/1.8  
/home/tomc/.gem/ruby/1.8/doc/activerecord-2.3.3/rdoc (direction to a  
specific rdoc dir)  
/opt/ruby-1.8.7-p160/lib/ruby/gems/1.8 (is where my gems actually  
reside)

=\> Can anyone tell me what I’m not grasping, such that this all failing  
so completely?

Thanks!

t.

Here’s my “gem env” output:

$ gem  
env

RubyGems  
Environment:

- RUBYGEMS VERSION:  
1.3.5

- RUBY VERSION: 1.8.7 (2009-04-08 patchlevel 160)  
[i686-linux]

- INSTALLATION DIRECTORY:  
/opt/ruby-1.8.7-p160/lib/ruby/gems/1.8

- RUBY EXECUTABLE: /opt/ruby-1.8.7-p160/bin/ruby

- EXECUTABLE DIRECTORY: /opt/ruby-1.8.7-p160/bin

- RUBYGEMS PLATFORMS:

- GEM PATHS:

- GEM CONFIGURATION:

- REMOTE SOURCES:

–

```auto
Tom C., MS MA, LMHC - Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< removed_email_address@domain.invalid >> (email)
<< TomCloyd.com >> (website)
<< sleightmind.wordpress.com >> (mental health weblog)

```
