title: how to install gems in home dir?
body: <p>I'm installing gems in my <code>$HOME</code> directory</p>
  
  <pre><code>$ cat .gemrc 
  -----------------------------------
  gemhome: ~/.gems
  
  gempath: /usr/lib/ruby/gems/1.9.1
  -----------------------------------
  
  $ gem install rspec
  installs rspec in ~/.gems/gems/rspec-*
  
  $ gem list
  
  *** LOCAL GEMS ***
  
  diff-lcs (1.2.4)
  rspec (2.13.0)
  rspec-core (2.13.1)
  rspec-expectations (2.13.0)
  rspec-mocks (2.13.1)
  
  $ rspec test_rspec.rb 
  cant find rspec -- apparently its not in $PATH
  
  $ gem uninstall rspec
  INFO:  gem "rspec" is not installed
  </code></pre>
  
  <p>can anyone help me? i'm not using rvm, i'm trying to understand these tools first.</p>
  
  <p>thanks</p>
  
  <p>UPDATE:</p>
  
  <pre><code>env | grep GEM
  </code></pre>
  
  <p>returns nothing</p>
  
  <pre><code>gem env
  </code></pre>
  
  <p>RubyGems Environment:</p>
  
  <ul>
  <li>RUBYGEMS VERSION: 1.8.23</li>
  <li>RUBY VERSION: 1.9.3 (2013-05-15 patchlevel 429) [i486-linux]</li>
  <li>INSTALLATION DIRECTORY: ~/.gems/</li>
  <li>RUBY EXECUTABLE: /usr/bin/ruby</li>
  <li>EXECUTABLE DIRECTORY: ~/.gems/bin</li>
  <li>RUBYGEMS PLATFORMS:
  <ul>
  <li>ruby</li>
  <li>x86-linux</li>
  </ul></li>
  <li>GEM PATHS:
  <ul>
  <li>~/.gems/</li>
  <li>/usr/lib/ruby/gems/1.9.1 ~/.gems/</li>
  </ul></li>
  <li>GEM CONFIGURATION:
  <ul>
  <li>:update_sources => true</li>
  <li>:verbose => true</li>
  <li>:benchmark => false</li>
  <li>:backtrace => false</li>
  <li>:bulk_threshold => 1000</li>
  <li>"gemhome" => "~/.gems/"</li>
  <li>"gempath" => "/usr/lib/ruby/gems/1.9.1 ~/.gems/"</li>
  </ul></li>
  <li>REMOTE SOURCES:
  <ul>
  <li><a href="http://rubygems.org/" rel="nofollow">http://rubygems.org/</a></li>
  </ul></li>
  </ul>