title: ERROR: Gem bundler is not installed, run `gem install bundler` first
body: <p>Hi I've been having a probably trying to install the Ruby gem bundle. I follow the directions <code>gem install bundle</code> after I receive this message, but it still doesn't work when I type <code>bundle -v</code>. I also type</p>
  
  <p><code>which bundle</code> and receive</p>
  
  <pre><code>/Users/edmundmai/.rvm/bin/bundle
  </code></pre>
  
  <p>so it exists!! So why does it not work!! Is there something wrong with the mysterious $PATH that I don't get? (I'm a noob). </p>
  
  <p>Here's my .bash_profile:</p>
  
  <pre><code>PATH=$PATH:~/bin
  export PATH
  [[ -s "$HOME/.rvm/scripts/rvm" ]] &amp;&amp; source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
  [[ -s "$HOME/.rvm/scripts/rvm" ]] &amp;&amp; . "$HOME/.rvm/scripts/rvm" # Load RVM function
  </code></pre>
  
  <p>Here's my .bashrc :</p>
  
  <pre><code>PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
  [[ -s "$HOME/.rvm/scripts/rvm" ]] &amp;&amp; source "$HOME/.rvm/scripts/rvm" 
  </code></pre>
  
  <p>Here's my gem env:</p>
  
  <pre><code>RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.24
  - RUBY VERSION: 1.9.3 (2012-04-20 patchlevel 194) [x86_64-darwin11.3.1]
  - INSTALLATION DIRECTORY: /Users/edmundmai/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd
  - RUBY EXECUTABLE: /Users/edmundmai/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/edmundmai/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-11
  - GEM PATHS:
     - /Users/edmundmai/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd
     - /Users/edmundmai/.rvm/gems/ruby-1.9.3-p194@global
  - GEM CONFIGURATION:
     - :update_sources =&gt; true
     - :verbose =&gt; true
     - :benchmark =&gt; false
     - :backtrace =&gt; false
     - :bulk_threshold =&gt; 1000
     - "install" =&gt; "--no-rdoc --no-ri"
     - "update" =&gt; "--no-rdoc --no-ri"
  - REMOTE SOURCES:
     - http://rubygems.org/
  </code></pre>
  
  <p>echo $PATH</p>
  
  <p><code>/Users/edmundmai/.rvm/bin:/Users/edmundmai/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/bin:/Users/edmundmai/.rvm/gems/ruby-1.9.3-p194@global/bin:/Users/edmundmai/.rvm/rubies/ruby-1.9.3-p194/bin:/Users/edmundmai/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/edmundmai/bin:/Users/edmundmai/bin</code></p>
  
  <p>UPDATE
  So after trying to go through the RoR tutorial again, I repeated a few of the steps from earlier in the chapter in one of my two terminal windows (let's call them Terminal #1 and Terminal #2). Terminal #2 still doesn't work (the command line isn't on any directory, just the default directory) while Terminal #1 (at my sample_app directory) works. I think <code>rvm get head &amp;&amp; rvm reload</code> might be the key? But does that mean I have to run that every time I open my terminal? Check out my terminal #1 commands for before and after (I deleted some of the output so that it would be more clear what my input lines were):</p>
  
  <pre><code>Edmunds-MacBook-Pro:sample_app edmundmai$ bundle -v
  ERROR: Gem bundler is not installed, run `gem install bundler` first.
  Edmunds-MacBook-Pro:sample_app edmundmai$ gem install
  ERROR:  While executing gem ... (Gem::CommandLineError)
  Please specify at least one gem name (e.g. gem build GEMNAME)
  Edmunds-MacBook-Pro:sample_app edmundmai$ rvm -v
  
  
  rvm 1.15.8 (master) by Wayne E. Seguin &lt;wayneeseguin@gmail.com&gt;, Michal Papis     &lt;mpapis@gmail.com&gt; [https://rvm.io/]
  
  Edmunds-MacBook-Pro:sample_app edmundmai$ rspec spec/
  No DRb server is running. Running in local process instead ...
  ........
  
  Finished in 0.36709 seconds
  8 examples, 0 failures
  
  Randomized with seed 59500
  
  Edmunds-MacBook-Pro:sample_app edmundmai$ subl .
  Edmunds-MacBook-Pro:sample_app edmundmai$ bundle install --binstubs=./bundler_stubs
  Using rake (0.9.2.2) 
  ...
  ...
  (**list of stuff)
  Using uglifier (1.2.3) 
  Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
  Edmunds-MacBook-Pro:sample_app edmundmai$ bundle show bundler
  /Users/edmundmai/.rvm/gems/ruby-1.9.3-p194@rails3tutorial2ndEd/gems/bundler-1.2.0
  </code></pre>
  
  <p>I'm extremely unclear as to what the $PATH does. If you guys need any more info, feel free to tell me and I'll provide it.</p>