title: How to Understand My Ruby Environment in Ubuntu?
body: <p>I am having some path issues and trying to understand how to read and match the paths.  Here is what I am doing:</p>
  
  <pre><code>$PATH
  bash: /home/agenadinik/.rvm/gems/ruby-1.9.2-p180/bin:/home/agenadinik/.rvm/gems/ruby-1.9.2-p180@global/bin:/home/agenadinik/.rvm/rubies/ruby-1.9.2-p180/bin:/home/agenadinik/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: No such file or directory
  </code></pre>
  
  <p>And then I am trying to see what is in my ruby environment:</p>
  
  <pre><code>$gem environment
  /home/agenadinik/.rvm/rubies/ruby-1.9.2-p180/bin/gem:4: 
  RubyGems Environment:
    - RUBYGEMS VERSION: 1.6.2
    - RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [i686-linux]
    - INSTALLATION DIRECTORY: /home/agenadinik/.rvm/gems/ruby-1.9.2-p180
    - RUBY EXECUTABLE: /home/agenadinik/.rvm/rubies/ruby-1.9.2-p180/bin/ruby
    - EXECUTABLE DIRECTORY: /home/agenadinik/.rvm/gems/ruby-1.9.2-p180/bin
    - RUBYGEMS PLATFORMS:
      - ruby
      - x86-linux
    - GEM PATHS:
       - /home/agenadinik/.rvm/gems/ruby-1.9.2-p180
       - /home/agenadinik/.rvm/gems/ruby-1.9.2-p180@global
    - GEM CONFIGURATION:
       - :update_sources =&gt; true
       - :verbose =&gt; true
       - :benchmark =&gt; false
       - :backtrace =&gt; false
       - :bulk_threshold =&gt; 1000
    - REMOTE SOURCES:
       - http://rubygems.org/
  </code></pre>
  
  <p>What I don't understand is which of my paths need to be matched up in my ruby environment and the $PATH</p>
  
  <p>Also, is my $PATH pretty much what is set in my /home/username/.bashrc file?
  What is usually the path of the Ruby executable that I need to point to?</p>
  
  <p>Also, doing which ruby returns this:</p>
  
  <pre><code>$ which ruby
  /home/agenadinik/.rvm/rubies/ruby-1.9.2-p180/bin/ruby
  </code></pre>
  
  <p>Thanks!!</p>